Likes

Linux Interview Questions


A list of top frequently asked Linux interview questions and answers are given below.

1) What is Linux?
Linux is a UNIX based operating system. It was first introduced by Linus Torvalds. It is an open source operating system that was designed to provide free and a low cost operating system for the computer users.

2) What is the difference between UNIX and Linux?
UNIX was originally started as a propriety operating system for Bell laboratories, which later release their commercial version while Linux is a free, open source and a non propriety operating system for the mass uses.

3) What is Linux Kernel?
Linux Kernel is low level system software. It is used to manage the hardware resources for the users. It provides an interface for user-level interaction.

4) Is it legal to edit Linux Kernel?
Yes. You can edit Linux Kernel because it is released under General Public License (GPL) and any one can edit it. It comes under the category of free and open source software.

5) What is LILO?
LILO is a boot loader for Linux. It is used to load the Linux operating system into the main memory to begin its operations.

6) What is the advantage of open source?
Open source facilitates you to distribute your software, including source codes freely to anyone who is interested. So, you can add features and even debug and correct errors of the source code.

7) What are the basic components of Linux?
Just like other operating systems, Linux has all components like kernel, shells, GUIs, system utilities and application programs.

8) What is the advantage of Linux?
Every aspect comes with additional features and it provides a free downloading facility for all codes.

9) What is Swap Space?
Swap space is used to specify a space which is used by Linux to hold some concurrent running program temporarily. It is used when RAM does not have enough space to hold all programs that are executing.

10) What is BASH?
BASH is a short form of Bourne Again SHell. It was a replacement to the original Bourne shell, written bu Steve Bourne.

11) What is the basic difference between BASH and DOS?
  • BASH commands are case sensitive while DOS commands are not case sensitive.
  • DOS follows a convention in naming files. In DOS, 8 character file name is followed by a dot and 3 characters for the extension. BASH doesn't follow such convention.

12) What is a root account?
The root account is like a system administrator account. It provides you full control of the system. You can create and maintain user accounts, assign different permission for each account etc.

13) What is CLI?
CLI stands for Command Line Interface. It is an interface that allows users to type declarative commands to instruct the computer to perform operations.

14) What is GUI?
GUI stands for Graphical User Interface. It uses the images and the icons which are clicked by the users to communicate with the system. It is more attractive and user-friendly because the use of the images and icons.

15) Which popular office suite is available free for both Microsoft and Linux?
Open Office Suite is available free for both Microsoft and Linux. You can install it on both of them.

16) Suppose your company is recently switched from Microsoft to Linux and you have some MS Word document to save and work in Linux, what will you do?
Install Open Office Suite on Linux. It facilitates you to work with Microsoft documents.

17) What is SMTP?
SMTP stands for Simple Mail Transfer Protocol. It is an internet standard for mail transmission.

18) What is Samba? Why is it used?
Samba service is used to connect Linux machines to Microsoft network resources by providing Microsoft SMB support.

19) What are the basic commands for user management?
  • last,
  • chage,
  • chsh,
  • lsof,
  • chown,
  • chmod,
  • useradd,
  • userdel,
  • newusers etc.

20) What is the maximum length for a file name in Linux?
255 characters.

21) Is Linux Operating system virus free?
No, There is no operating system till date that is virus free but Linux is known to have less number of viruses.

22) Which partition stores the system configuration files in Linux system?
/stc partition.

23) Which command is used to uncompress gzip files?
gunzip command is used to uncompress gzip files.

24) Why do developers use MD5 options on passwords?
MD5 is an encryption method so it is used to encrypt the passwords before saving.

25) What is a virtual desktop?
The virtual desktop is used as an alternative to minimizing and maximizing different windows on the current desktop. Virtual desktop facilitates you to open one or more programs on a clean slate rather than minimizing or restoring all the needed programs.

26) What is the difference between soft and hard mounting points?
In the soft mount, if the client fails to connect the server, it gives an error report and closes the connection whereas in hard mount, if the client fails to access the server, the connection hangs; and once the system is up, it again accesses the server.

27) Does the Alt+Ctrl+Del key combination work in Linux?
Yes, it works like windows.

28) What are the file permissions in Linux?
There are 3 types of permissions in Linux OS that are given below:
  • Read: User can read the file and list the directory.
  • Write: User can write new files in the directory .
  • Execute: User can access and run the file in a directory.

29) What are the modes used in VI editor?
There are 3 types of modes in vi Editor:
  • Regular mode or command mode
  • Insertion mode or edit mode
  • Replacement mode or Ex mode

30) How to exit from vi editor?
The following commands are used to exit from vi editor.
  1. :wq saves the current work and exits the VI.
  2. :q! exits the VI without saving current work.

31) How to delete information from a file in vi?
The following commands are used to delete information from vi editor.
  1. x deletes a current character.
  2. dd deletes the current line.

32) How to create a new file or modify an existing file in vi?

  1. vi filename  

1 comment:

padmini said...

Nice and good article. It will helpful for interview perspective. I have suggested to my friends to go through this blog. Thanks for sharing this useful information. If you want to learn Linux course in online, please visit below site.
Linux Online Training
linux online course