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.
Is it helpful?
Add Comment
View Comments
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
Is it helpful?
Add Comment
View Comments
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
Is it helpful?
Add Comment
View Comments
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
Is it helpful?
Add Comment
View Comments
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.
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?