Interview Questions and Answers
Intermediate / 1 to 5 years experienced level questions & answers
Ques 1. What is the purpose of the '/etc/apt/sources.list' file?
The '/etc/apt/sources.list' file contains a list of package repositories for APT.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Ques 2. 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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Ques 3. How do you install a package using the 'dpkg' command?
You can install a package with the command: sudo dpkg -i package.deb
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Ques 4. 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
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Ques 5. 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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Ques 6. Explain the purpose of the '/etc/passwd' file.
The '/etc/passwd' file contains user account information, including usernames and user IDs.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Ques 7. How do you search for a file in Ubuntu using the command line?
You can use the 'find' command to search for files. For example: find /path/to/search -name filename
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Ques 8. What is the purpose of the '/etc/apt/sources.list.d/' directory?
The '/etc/apt/sources.list.d/' directory is used to store additional APT repository configuration files.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Ques 9. What is the purpose of the 'chmod' command?
The 'chmod' command is used to change the permissions of a file or directory.
Example:
chmod permissions filename
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Ques 10. Explain the purpose of the 'cron' system in Ubuntu.
The 'cron' system is used for scheduling tasks to run automatically at specified intervals.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Ques 11. How do you add a user to a group in Ubuntu?
You can add a user to a group with the 'usermod' command. For example: sudo usermod -aG groupName username
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Ques 12. Explain the purpose of the 'journalctl' command.
The 'journalctl' command is used to query and display messages from the journal, managed by 'systemd'.
Example:
journalctl
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Ques 13. What is the purpose of the 'apt-cache' command?
The 'apt-cache' command is used to query and display information about packages in the APT cache.
Example:
apt-cache show packageName
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Ques 14. 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
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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?
Related interview subjects
| Ubuntu вопросы и ответы для интервью - Total 30 questions |
| Linux вопросы и ответы для интервью - Total 43 questions |
| Unix вопросы и ответы для интервью - Total 105 questions |
| Weblogic вопросы и ответы для интервью - Total 30 questions |
| Tomcat вопросы и ответы для интервью - Total 16 questions |
| Glassfish вопросы и ответы для интервью - Total 8 questions |