All of us are aware of the term operating system(OS), who usually use laptop and desktops.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 is stood as the best used operating system with its features like the best efficiency and fast performance. It can run of different hardware like Intel, IBM and Manufactured HPetc. 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 low cost.
2) What are the Basic Components of Linux?
A) Linux has the following 4 basic components. a)Kernal-It is the core part of the Linux operating system and responsible for all the activities. It manages the hardware.
b) Shell-Shell is a Linux interpreter that is used to execute the commands.
c) System Utilities-These is software functions used to perform individual and specialized operations.
d)System Library-This act as the best function which accesses kernel’s operations. Most of the operations in OS was done here.
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, textboxes 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
a) It is a multi-tasker and multifunctional as it performs tasks simultaneously.
b) Linux kernel and applications can be run on any hardware platforms, it is considered as
c)It provides security services like authentication, authorization, and encryption
d)It is very consumer friendly because of efficient accuracy and low cost
e)It has its own applications that are used for installation and download, it has customized
Keywords.
f) Linux supports multi-user to access the same system resources but by different
Terminals for operation
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. The 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; here a 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 u 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 The different commands and tools are used to manage swap space.
8)Explain 3 kinds of permissions by Linux?
A)Every file and dictionary in Linux are assigned by 3 owners they are User Group and Others. There are certain permissions defined for 3 owners are listed below
a)Read: This permission allows you open and reads files as much as can list the content of the directory
b)Write: This permission allows adding, reading and removing files in the directory.It allows you to modify the content in files.
c)Execute: User can run and set files in the dictionary, the user needs permission to run a file on the dictionary.
9)How to change permissions in 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,write and execute
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
1.cd cd-Change directory as the name suggest allowing the user to change directory Syntax:$ cd <path to new directory>
2.mkdir- Make a directory allows the user to create a directory.
Syntax:$ mkdir <name of new directory>
3)rmdir rmdir-removes the directory or deletes the directory
Syntax-$ rmdir < name of the directory>
4)ls ls-lt lists all the files and directories currently working
Syntax:$ ls
5)pwd pwd-path of directory-It shows the path of the current directory Syntax: $ pwd
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, are shown below
. Command mode/Regular Mode . Insertion mode/Edit Mode . Ex Mode/Replacement Mode.
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:
1)Head-This command is used to display the begging of the file.
2)Tail-This command shows the end most part of the file.
3)More-Displays the content in a pager form to understand easily to the users and it is used to view the text on the terminal window on page or screen at a time.
4)less-This commands used to view the information in pager form and allows backward and single line movement.
5)cat- concatenate files and print on standard output.
15)Show the process states in Linux?
A)Some of the processing states in Linux are listed under, they are:
. Ready-The process is completed and ready to run.
. Running-The process is being executed.
. Terminated or completed-Process completes execution and is terminated by the operating system.
.Wait or Blocked-Process is waiting for input from the user.
.Zombie- process terminates, but still information exists.