Ubuntu Interview Questions and Answers
Ques 6. Explain the difference between 'apt-get' and 'apt'.
'apt' is a simplified command-line interface for the APT package manager, while 'apt-get' is the traditional command-line tool.
Ques 7. How do you install a package using the 'dpkg' command?
You can install a package with the command: sudo dpkg -i package.deb
Ques 8. 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 9. How do you change the ownership of a file in Ubuntu?
You can change the ownership of a file with the 'chown' command, like this: sudo chown newOwner:newGroup filename
Ques 10. What is the purpose of the '/etc/fstab' file?
The '/etc/fstab' file contains information about disk drives and partitions, and it is used by the 'mount' command.
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 'ls' command in Linux?