Ubuntu Interview Questions and Answers
Ques 26. Explain the purpose of the '/etc/hostname' file.
The '/etc/hostname' file contains the hostname of the system.
Is it helpful?
Add Comment
View Comments
Ques 27. How do you check the Ubuntu release codename?
You can check the release codename with the command: lsb_release -c
Is it helpful?
Add Comment
View Comments
Ques 28. What is the purpose of the 'systemctl' command?
The 'systemctl' command is used to control the 'systemd' system and service manager.
Example:
systemctl status serviceName
Is it helpful?
Add Comment
View Comments
Ques 29. How do you check the CPU information in Ubuntu?
You can check CPU information using the 'lscpu' command.
Is it helpful?
Add Comment
View Comments
Ques 30. Explain the purpose of the '/var/log' directory.
The '/var/log' directory contains log files generated by various system processes and services.
Is it helpful?
Add Comment
View Comments
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?
- Explain the purpose of the 'sudo' command.
- What is the purpose of the 'grep' command?