๐น 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.
2June 10, 2025 1.7K 18