LInux Interview questions for experienced
1. Service Management (systemd) Q: How do you manage services in modern Linux? Answer: Using systemd Common commands: systemctl start nginx systemctl stop nginx systemctl restart nginx systemctl status nginx systemctl enable nginx systemctl disable nginx Q: Service is not starting. How will you debug? Answer: systemctl status journalctl -u Check: Syntax errors Port conflicts Permission issues Q: Difference between service and systemctl? service → old SysV init systemctl → modern systemd 🔹 2. Boot Process & Targets Q: Explain Linux boot process briefly Answer: BIOS → GRUB → Kernel → Init (systemd) → Services Q: How to change runlevel in systemd? Runlevels replaced by targets: systemctl get-default systemctl set-default multi-user.target systemctl isolate rescue.target 🔹 3. Process Management Q: How do you find high CPU process? top htop ps -aux --sort=-%cpu Q: Kill a process safely vs forcefully? kill -15 # graceful kill -9 # force Scenario: Q: Process keeps restarting au...