Linux Interview Questions For Beginners: Top Questions You Must Prepare For In 2016
System Administrator, Storage Administrator, Web Applications Expert, Database Administrator – these are just a handful of job titles that have seen an upsurge since October 2015 (according to Indeed.com). Job opportunities are skyrocketing, and with organizations adopting Linux far and wide, Linux Administrator roles are getting hard to fill. The signal has never been clearer that Linux Administration is the best skill to master now! For the benefit of those who are preparing for a Linux Administration interview, we have created a list of top frequently-asked Linux interview questions that will help you come out on top.
However, if you have already given a Linux interview, or have more questions, we encourage you to add them in the comments tab below.
Linux Interview Questions
1. What is LVM and what is its role?
LVM stands for Logical Volume Manager. It is used to resize the file system online.
2. What is the role of Ivextend and Ivreduce?
They are commands used to extend or reduce the volume.
3. What is umask?
umask stands for “user file creation mask”. It is used to determine those settings of a mask that control file permission data and directory data.
4. In the context of Linux, what does POSIX stand for?
POSIX stands for Portable Operating System Interface for Computer Environments. It is the de facto standard for ensuring compatibility between UNIX versions.
5. How is Linux connected to UNIX?
The kernel that Linux uses resembles that of UNIX but does not require UNIX code.
6. In the context of Linux, what is GPL?
GPL stands for General Public License. It was originally created to protect the GNU project.
7. Explain the GNU project.
GNU is a project that was initiated by Richard Stallman in 1983 at MIT. The project began with the idea of providing control and freedom to the users in using software. As part of the GNU project, users are free to use, run, copy and share software.
8. How do you turn a Linux system into a proxy server?
Using the Squid service, you can turn a Linux system into a proxy server.
9. What is LILO in the context of Linux?
LILO is a boot loader for Linux. It is used for loading the Linux operating system into the main system memory before beginning operations.
10. Define BIOS, MBR and GRUB.
BIOS stands for Basic Input/Output System. MBR is Master Boot Record and GRUB is Graand Unified Bootloader.
11. What is the difference between home directory and working directory?
Home directory is the default directory when a user logs in whereas working directory is the user’s current working directory.
12. In Linux, how do you track system events?
To track events, a daemon called syslogd is used.
13. What do you do when you encounter a suspicious IP?
We should first block the suspicious IP by integrating tcp_wrapper. Next, we need to enable the “tcp_wrapper=YES” parameter in the configuration file at ‘/etc/vsftpd.conf’. Final step – include the suspicious IP in the ‘host.deny’ file in ‘/etc/host.deny’.
14. Describe Telnet and SSH.
Both Telnet and SSH are communication protocols that are used to manage systems remotely. While SSH requires exchange of keys, Telnet transmits data in plain text. Hence, SSH is said to be more secure than Telnet.
15. State the difference between the locate and slocate commands.
Locate searches for a file with the latest entries while slocate searches for files that users have accessed most recently.
16. How many partitions do you need to install Linux?
You need at least two partitions to install Linux on your system.
17. How do you review boot messages in Linux?
By using the dmesg command. Dmesg will pull out boot messages stored in the kernel ring buffer.
18. What are symbolic links?
Symbolic links are “shortcut keys” in Linux. These links point to specific programs, files or directories.
19. What do Hard Links do?
Hard links point directly to the physical file located on the disk, and not on the path name.
20. What does pwd stand for?
In Linux, it stands for print working directory.
21. Explain the three different permissions in Linux.
– Read: Gives users the permission to read files or list directories
– Write: Gives users the permission to write to the file of new files and directories
– Execute: Gives users the permission to run the file or lookup a specific file within a directory
22. What is the # symbol used for?
# is used for creating new comments.
Got a question for us? Please mention it in the comments section and we will get back to you.