Linux Interview Questions and Answers
Experienced / Expert level questions & answers
Ques 1. Explain the purpose of the 'iptables' command.
'iptables' is used to set up, maintain, and inspect the tables of IP packet filter rules in Linux.
Ques 2. How do you find files larger than a specific size in Linux?
The 'find' command with the '-size' option can be used to find files larger than a specified size.
Ques 3. What is a daemon in Linux?
A daemon is a background process that runs without direct user interaction.
Ques 4. Explain the purpose of the 'chroot' command.
'chroot' is used to change the root directory for a specified command or shell.
Ques 5. How do you check the status of a service in Linux?
The 'systemctl' command is used to check the status of a service in Linux.
Ques 6. What is a shell script in Linux?
A shell script is a series of commands written in a script file to be executed by the shell.
Ques 7. Explain the purpose of the 'umask' command.
'umask' is used to set the default file permissions for newly created files.
Ques 8. How do you create a swap file in Linux?
The 'dd' command and 'mkswap' command are used to create a swap file in Linux.
Ques 9. What is the purpose of the 'crontab' command?
'crontab' is used to create, view, and edit cron jobs in Linux.
Ques 10. How do you find all files modified in the last 7 days?
The 'find' command with the '-mtime' option can be used to find files modified within a specific time frame.
Ques 11. Explain the purpose of the 'rsync' command.
'rsync' is used for file synchronization and transfer between systems.
Ques 12. What is the purpose of the 'ldconfig' command?
'ldconfig' is used to configure dynamic linker run-time bindings.
Ques 13. How do you create a hard link in Linux?
The 'ln' command is used to create hard links in Linux.
Ques 14. Explain the purpose of the 'journalctl' command.
'journalctl' is used to query and display messages from the journal, managed by 'systemd-journald' service.
Ques 15. What is the purpose of the 'crash' command in Linux?
'crash' is used to analyze the Linux kernel core dumps.
Ques 16. How do you change the hostname in Linux?
The 'hostnamectl' command is used to change the hostname in Linux.
Ques 17. Explain the purpose of the 'journalctl' command.
'journalctl' is used to query and display messages from the journal, managed by 'systemd-journald' service.
Ques 18. What is the purpose of the 'crash' command in Linux?
'crash' is used to analyze the Linux kernel core dumps.
Ques 19. How do you change the hostname in Linux?
The 'hostnamectl' command is used to change the hostname in Linux.
Ques 20. What is the purpose of the 'journalctl' command.
'journalctl' is used to query and display messages from the journal, managed by 'systemd-journald' service.
Ques 21. What is the purpose of the 'crash' command in Linux?
'crash' is used to analyze the Linux kernel core dumps.
Ques 22. How do you change the hostname in Linux?
The 'hostnamectl' command is used to change the hostname in Linux.
Ques 23. What is the purpose of the 'journalctl' command.
'journalctl' is used to query and display messages from the journal, managed by 'systemd-journald' service.
Ques 24. What is the purpose of the 'crash' command in Linux?
'crash' is used to analyze the Linux kernel core dumps.
Most helpful rated by users:
- What is the purpose of the 'chmod' command in Linux?
- What is the role of the 'grep' command in Linux?
- Explain the difference between 'rm' and 'rmdir' commands.
- Explain the purpose of the 'ls' command.
- Explain the purpose of the 'sudo' command.
Related differences
Related interview subjects
Unix interview questions and answers - Total 105 questions |
Weblogic interview questions and answers - Total 30 questions |
Tomcat interview questions and answers - Total 16 questions |
Glassfish interview questions and answers - Total 8 questions |
Ubuntu interview questions and answers - Total 30 questions |
Linux interview questions and answers - Total 43 questions |