Linux is asked in almost every system admin, cloud and DevOps interview. These 15 questions cover what freshers are expected to know, with commands you can practise.
1. How do you check disk usage?
df -h shows file system usage; du -sh /path shows the size of a folder.
2. How do you find a file by name?
find / -name “file.txt” searches the whole system; locate file.txt is faster if the database is updated.
3. Explain Linux file permissions like 754.
Owner 7 (read, write, execute), group 5 (read, execute), others 4 (read). Change with chmod and ownership with chown.
4. Soft link vs hard link?
A soft (symbolic) link points to a file path and breaks if the file is deleted. A hard link points to the same inode, so the data stays while any hard link exists.
5. How do you see running processes and stop one?
ps aux or top lists processes; kill PID sends a stop signal, kill -9 PID forces it.
6. How do you manage a service with systemd?
systemctl start|stop|restart|status name, and systemctl enable name to start it at boot.
7. What is LVM and why use it?
Logical Volume Manager groups disks into volume groups and lets you create and resize logical volumes without repartitioning.
8. How do you add a user and give sudo access?
useradd name, passwd name, then add the user to the wheel group (RHEL) with usermod -aG wheel name.
9. Where are logs stored?
Mostly in /var/log; on systemd systems use journalctl, for example journalctl -u sshd.
10. What is SELinux?
A mandatory access control system in RHEL. getenforce shows its mode (Enforcing, Permissive, Disabled); restorecon fixes file contexts.
11. How do you open a port in the firewall on RHEL?
firewall-cmd –add-port=8080/tcp –permanent, then firewall-cmd –reload.
12. How do you schedule a job?
crontab -e with a line like 0 2 * * * /backup.sh runs it every day at 2 am.
13. How do you check network settings?
ip a for addresses, ip route for routes, nmcli for NetworkManager connections, ss -tulnp for listening ports.
14. What is the difference between apt and dnf/yum?
apt manages packages on Debian/Ubuntu; dnf (yum) does the same on RHEL, CentOS and Fedora.
15. A server is slow. What do you check first?
Load and CPU with top or uptime, memory with free -h, disk space with df -h and disk I/O with iostat, then recent logs.
Prepare with iTrainU
Our Linux course includes mock technical interviews with trainers and placement assistance. See the Linux course or book a free demo class. Call +91-7611175111.