Ubuntu Interview Questions and Answers
Freshers / Beginner level questions & answers
Ques 1. What is the default package manager in Ubuntu?
The default package manager in Ubuntu is APT (Advanced Package Tool).
Example:
sudo apt-get install packageName
Ques 2. How do you update the package list with APT?
You can update the package list with the command: sudo apt-get update
Ques 3. Explain the purpose of the 'sudo' command.
The 'sudo' command is used to execute a command with administrative privileges.
Example:
sudo commandToExecute
Ques 4. How can you check the version of Ubuntu installed on your system?
You can check the Ubuntu version with the command: lsb_release -a
Ques 5. What is the purpose of the 'ls' command in Linux?
The 'ls' command is used to list files and directories in a directory.
Example:
ls
Ques 6. How do you find the IP address of your Ubuntu system?
You can find the IP address using the 'ifconfig' or 'ip addr' command.
Example:
ifconfig
Ques 7. What is the purpose of the 'grep' command?
The 'grep' command is used to search for a specific pattern or text in files.
Example:
grep pattern filename
Ques 8. How do you enable the UFW (Uncomplicated Firewall) in Ubuntu?
You can enable UFW with the command: sudo ufw enable
Ques 9. How do you check the available disk space in Ubuntu?
You can check disk space using the 'df' command. For example: df -h
Ques 10. What is the purpose of the 'tar' command?
The 'tar' command is used for compressing and archiving files and directories.
Example:
tar -cvzf archive.tar.gz /path/to/directory
Ques 11. How do you find the process ID (PID) of a running process in Ubuntu?
You can use the 'pgrep' or 'ps' command to find the PID of a running process.
Example:
pgrep processName
Ques 12. Explain the purpose of the '/etc/hostname' file.
The '/etc/hostname' file contains the hostname of the system.
Ques 13. How do you check the Ubuntu release codename?
You can check the release codename with the command: lsb_release -c
Ques 14. How do you check the CPU information in Ubuntu?
You can check CPU information using the 'lscpu' command.
Ques 15. Explain the purpose of the '/var/log' directory.
The '/var/log' directory contains log files generated by various system processes and services.
Most helpful rated by users:
- What is the default package manager in Ubuntu?
- How do you update the package list with APT?
- How can you check the version of Ubuntu installed on your system?
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 |