softwarewala.ss: post #529 โ€” TG.ME

๐Ÿ”น Linux System Administration Essentials ๐Ÿ”น

๐Ÿ”น Command to check Disk usage?
๐Ÿ“Œ df -h - Check disk usage in human-readable format.
๐Ÿ“Œ du -sh <directory> - Check the size of a specific directory.

๐Ÿ”น Difference between ps -aux & top command?
โœ… ps -aux - Provides a snapshot of active processes.
โœ… top - Real-time system performance monitoring.

๐Ÿ”น What are the Ways to check CPU usage?
๐Ÿ’ป top | htop | mpstat | vmstat | sar

๐Ÿ”น How to check CPU details?
๐Ÿ“Œ lscpu or cat /proc/cpuinfo

๐Ÿ”น Steps to create a partition & format with a file system?
1๏ธโƒฃ fdisk /dev/sdX - Create a partition.
2๏ธโƒฃ mkfs.ext4 /dev/sdX1 - Format the partition.
3๏ธโƒฃ mount /dev/sdX1 /mnt - Mount the partition.

๐Ÿ”น Steps to create LV?
1๏ธโƒฃ pvcreate /dev/sdX
2๏ธโƒฃ vgcreate vg_name /dev/sdX
3๏ธโƒฃ lvcreate -L 10G -n lv_name vg_name
4๏ธโƒฃ mkfs.ext4 /dev/vg_name/lv_name

๐Ÿ”น Steps to reduce XFS & EXT file systems?
โš ๏ธ XFS: Cannot be reduced directly.
โœ… EXT: umount, resize2fs, lvreduce, mount

๐Ÿ”น Significance of .bashrc file?
๐Ÿ“ User-specific shell configurations & aliases.

๐Ÿ”น How to check the kernel version?
๐Ÿ“Œ uname -r

๐Ÿ”น How to check the Red Hat release version?
๐Ÿ“Œ cat /etc/redhat-release or cat /etc/os-release

๐Ÿ”น Significance of resolv.conf file?
๐ŸŒ Configures DNS name resolution.

๐Ÿ”น What is DNS? How to resolve DNS? Types of DNS records?
๐Ÿ” DNS translates domain names to IP addresses.
โœ… Resolve: nslookup or dig
๐Ÿ“Œ Types: A, AAAA, CNAME, MX, TXT, PTR

๐Ÿ”น Difference between Nginx & HTTP Server?
๐Ÿš€ Nginx: Event-driven | Apache: Process-based

๐Ÿ”น Port numbers:
๐ŸŒ HTTP: 80 | ๐Ÿ“‚ FTP: 21 | ๐Ÿ” SSH: 22 | ๐Ÿ”’ HTTPS: 443

๐Ÿ”น What is SSH? How to generate SSH-keys?
๐Ÿ” Secure Shell protocol for remote access.
๐Ÿ“Œ Generate keys: ssh-keygen

๐Ÿ”น What are Private & Public keys? How do they authenticate?
๐Ÿ”‘ Private key (kept secret) & Public key (shared).
โœ… Authentication via asymmetric encryption.

๐Ÿ”น Configuration file of SSH?
๐Ÿ“Œ /etc/ssh/sshd_config

๐Ÿ”น Configuration file of HTTP?
๐Ÿ“Œ /etc/httpd/conf/httpd.conf (Apache)

๐Ÿ”น What is Virtual Hosting? How to configure it?
๐ŸŒ Hosting multiple sites on a single server.
๐Ÿ“Œ Configure using <VirtualHost> in Apache.

๐Ÿ”น Explain ifconfig command?
๐ŸŒ Displays/configures network interfaces.

๐Ÿ”น Difference between IPv4 & IPv6?
โœ… IPv4: 32-bit | โœ… IPv6: 128-bit

๐Ÿ”น What is a MAC address? Can we change it?
๐Ÿ“Œ Unique network identifier.
โš ๏ธ Change: ifconfig eth0 hw ether <MAC>

๐Ÿ”น How to check system uptime?
๐Ÿ“Œ uptime

๐Ÿ”น How to check memory information?
๐Ÿ“Œ free -m | cat /proc/meminfo

๐Ÿ”น What is SWAP?
๐Ÿ› ๏ธ Virtual memory when RAM is full.
โค2
June 10, 2025 1.7K 18