Linux Interview Questions for Freshers
https://www.computersprofessor.com/2019/04/linux-interview-questions-for-freshers.html
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. Linus Torvalds first introduced it. 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 anyone 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) Define shell
It is an interpreter in Linux.
10) Name some shells that are commonly used in Linux.
The most commonly used shells in Linux are bash, csh, ksh, bsh.
11) Name the Linux which is specially designed by the Sun Microsystems.
Solaris is the Linux of Sun Microsystems.
12) Name the Linux loader.
LILO is the Linux loader.
13) If you have saved a file in Linux. Later you wish to rename that file, what command is designed for it?
The 'mv' command is used to rename a file.
14) Write about an internal command.
The commands which are built in the shells are called as the internal commands.
15) Define inode.
Each file is given a unique name by the operating system which is called as the inode.
16) If the programmer wishes to execute an instruction at the specified time. Which command is used?
The 'at' command is used for the same.
17) Explain process id.
The operating system uniquely identifies each process by a unique id called as the process id.
18) Name some Linux variants.
Some of the Linux commands are:
- CentOS
- Ubuntu
- Redhat
- Debian
- Fedora
19) 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.
20) What is BASH?
BASH is a short form of Bourne Again SHell. It was a replacement to the original Bourne shell, written by Steve Bourne.
21) 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.
22) 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.
23) 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.
24) What is the 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 of the use of the images and icons.
25) 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.
26) 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.
27) What is SMTP?
SMTP stands for Simple Mail Transfer Protocol. It is an internet standard for mail transmission.
28) What is Samba? Why is it used?
Samba service is used to connect Linux machines to Microsoft network resources by providing Microsoft SMB support.
29) What are the basic commands for user management?
- last,
- chage,
- chsh,
- lsof,
- chown,
- chmod,
- useradd,
- userdel,
- newusers etc.
30) What is the maximum length for a filename in Linux?
255 characters.
31) 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.
32) Which partition stores the system configuration files in Linux system?
/stc partition.
33) Which command is used to uncompress gzip files?
gunzip command is used to uncompress gzip files.
34) Why do developers use MD5 options on passwords?
MD5 is an encryption method, so it is used to encrypt the passwords before saving.
35) 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.
36) 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 the hard mount, if the client fails to access the server, the connection hangs; and once the system is up, it again accesses the server.
37) Does the Alt+Ctrl+Del key combination work in Linux?
Yes, it works like windows.
38) 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.
39) 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
40) How to exit from vi editors?
The following commands are used to exit from vi editors.
- :wq saves the current work and exits the VI.
- :q! exits the VI without saving current work.
41) How to delete information from a file in vi?
The following commands are used to delete information from vi editors.
- x deletes a current character.
- dd deletes the current line.
42) How to create a new file or modify an existing file in vi?
- vi filename