Web Development & Technology Resources

Linux Interview Questions And Answers

Linux

All of us, who usually use a laptop and desktops, are aware of the term operating system(OS). OS manages all the resources of hardware of systems and enables the best communication between software and your computer’s hardware. The best feature to define OS is software can work without this like Window7, Windows8, MAC, Windows XP; Linux is also a type of operating system.

Linux has stood as the best used operating system with its features like the best efficiency and fast performance. It can run on different hardware like Intel, IBM and Manufactured Hp, etc. In this article, we are going to discuss some of the best ​Linux interview questions:

1) What is Linux?

A) Linux is an open-source of operating system based on Unix. Linux was first introduced by Linus Torvalds. It gives high efficiency, most of the people choose Linux rather than Windows or iOS because of its low cost.

2) What are the Basic Components of Linux?

A) Linux has the following 4 basic components:

3) What is the GUI?

A) GUI is nothing but the graphical user interface, which is another way to interact with the system. Unlike CPI, GUI has images, buttons, text-boxes and because of these features, GUI has the interaction action to users.

4) What are the features of Linux?

A) Here is a list of features performed by Linux:

5) Explain LILO?

A) LILO stands for Linux Loader, it is a boot loader that loads an operating system into the main memory for starting its execution. A boot loader is a small program which manages dual boot. The advantage of LILO is it allows the fast boot up of Linux when installing Master Boot Record (MBR).

6) What is CLI?

A) CLI stands for Command Line Interface. It is a process of interaction with computers, where textual base commands are given to instruct operations. It relies on the textual request and response transaction process.

7) What is meant by Swap space?

A) Swap space is an additional space used by Linux to hold temporarily the currently running programs where RAM does not have sufficient memory to hold programs. Suppose if you run a program it resides in RAM, if more programs are running then RAM is not able to receive programs, so here a memory management process is done called swap space. There are different commands and tools used to manage swap space.

8) Explain 3 kinds of permissions by Linux?

A) Every file and dictionary in Linux is assigned by 3 owners which are the User Group and the Others. The certain permissions defined for 3 owners are listed below:

9) How to change permissions in the file or directory?

A) We can change the permission in a file or directory by using the chmod command.it has 2 types of modes

1. Symbolic Mode
2. Absolute Mode

Symbolic mode- We can change permissions by using symbolic mode as
$chmod<target>(+/-/=)<permission><filename>
Here <permossions> can be read,written and executed
And <target> can be user, group, other and all. “+” is used to adding permission. “-” is used to removing
permission. “=” is used to set permission.

The absolute mode-The formal syntax which is used change permission is
$chmod<permission>filename

10) What are Linux commands?

A) There are some important Linux commands were listed below

11) What is a Latch?

A) The latch is a temporary control storage device controlled by signals with timings which can be either 0 or 1. The latch can store one bit of data as long as it powers on. It has 2 outputs as high output-1 and lows output-2, which is mainly used to store information.

12) Show different modes when using vi editor?

A) There are 3 types of modes available in vi editors, as shown below

13) Explain Command grouping in Linux?

A) Command grouping is usually done by using braces” ()” or parenthesis”{}”.
When commands are placed within braces, then they executed as a shell.
Eg:(list)
when commands are placed within parenthesis, then they are executed as a subshell.
Eg:{list}

14) Explain some Linux file content commands?

A) There are many commands used to look up at the content of files. Some of them are listed below:

15) Show the process states in Linux?

A) Some of the processing states in Linux are listed under, they are:

Exit mobile version