Linux Interview Questions and Answers
Freshers / Beginner level questions & answers
Ques 1. What is the purpose of the 'chmod' command in Linux?
The 'chmod' command is used to change the permissions of a file or directory in Linux.
Ques 2. Explain the difference between 'rm' and 'rmdir' commands.
'rm' is used to remove files, while 'rmdir' is used to remove empty directories.
Ques 3. What is the role of the 'grep' command in Linux?
'grep' is used for searching patterns in files. It stands for 'Global Regular Expression Print.'
Ques 4. How do you check the free disk space in Linux?
The 'df' command is used to display the amount of disk space available on the file system.
Ques 5. Explain the purpose of the 'ls' command.
'ls' is used to list files and directories in a directory.
Ques 6. What is the purpose of the 'ps' command?
'ps' is used to display information about the currently running processes.
Ques 7. How do you find the process ID (PID) of a running process?
The 'pgrep' or 'pidof' command can be used to find the PID of a running process.
Ques 8. What is a symbolic link in Linux?
A symbolic link is a file that serves as a reference to another file or directory.
Ques 9. Explain the purpose of the 'sudo' command.
'sudo' is used to execute commands with administrative or superuser privileges.
Ques 10. What is the purpose of the 'tar' command?
'tar' is used to create and manipulate archive files.
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 |