JAVA SCRIPT

LINUX INTERVIEW QUESTIONS



1. what is Linux ?

Linux is one of popular version of UNIX operating System. It is open source as its source code is freely available. It is free to use. Linux was designed considering UNIX compatibility. Its functionality list is quite similar to that of UNIX.


2. what are components of Linux system ?

Components of Linux System

Linux Operating System has primarily three components

  • Kernel − Kernel is the core part of Linux. It is responsible for all major activities of this operating system. It consists of various modules and it interacts directly with the underlying hardware. Kernel provides the required abstraction to hide low level hardware details to system or application programs.

  • System Library − System libraries are special functions or programs using which application programs or system utilities accesses Kernel's features. These libraries implement most of the functionalities of the operating system and do not requires kernel module's code access rights.

  • System Utility − System Utility programs are responsible to do specialized, individual level tasks



3.   Kernel Mode vs User Mode

Kernel component code executes in a special privileged mode called kernel mode with full access to all resources of the computer. This code represents a single process, executes in single address space and do not require any context switch and hence is very efficient and fast. Kernel runs each processes and provides system services to processes, provides protected access to hardware to processes.

Support code which is not required to run in kernel mode is in System Library. User programs and other system programs works in User Mode which has no access to system hardware and kernel code. User programs/ utilities use System libraries to access Kernel functions to get system's low level tasks.


4. Features of Linux operating system


Following are some of the important features of Linux Operating System.

  • Portable − Portability means software can works on different types of hardware in same way. Linux kernel and application programs supports their installation on any kind of hardware platform.

  • Open Source − Linux source code is freely available and it is community based development project. Multiple teams work in collaboration to enhance the capability of Linux operating system and it is continuously evolving.

  • Multi-User − Linux is a multiuser system means multiple users can access system resources like memory/ ram/ application programs at same time.

  • Multiprogramming − Linux is a multiprogramming system means multiple applications can run at same time.

  • Hierarchical File System − Linux provides a standard file structure in which system files/ user files are arranged.

  • Shell − Linux provides a special interpreter program which can be used to execute commands of the operating system. It can be used to do various types of operations, call application programs. etc.

  • Security − Linux provides user security using authentication features like password protection/ controlled access to specific files/ encryption of data.


5. Architecture of Linux operating system 


The architecture of a Linux System consists of the following layers −

  • Hardware layer − Hardware consists of all peripheral devices (RAM/ HDD/ CPU etc).

  • Kernel − It is the core component of Operating System, interacts directly with hardware, provides low level services to upper layer components.

  • Shell − An interface to kernel, hiding complexity of kernel's functions from users. The shell takes commands from the user and executes kernel's functions.

  • Utilities − Utility programs that provide the user most of the functionalities of an operating systems.


6.  What is the difference between Linux and UNIX?

Linux and UNIX are related systems with several important distinctions that a competent IT professional would need to understand. As an interview candidate, this presents a unique opportunity to offer a complete answer that shows your knowledge of the competing systems. Other compare-and-contrast type questions could include:  Bash versus DOS , Cron versus anacron



7.  what is LILO ?

The acronym LILO stands for Linux Loader. It is a bootloader for Linux that loads Linux into main memory and starts up the operating system. GRUB and ELILO are other 2 bootloaders.


8 . What is BASH?

BASH is short for Bourne Again SHell. It was written by Steve Bourne as a replacement to the original Bourne Shell (represented by /bin/sh). It combines all the features from the original version of Bourne Shell, plus additional functions to make it easier and more convenient to use. It has since been adapted as the default shell for most systems running Linux.



9.   What is Swap space?

The primary purpose of swap space is to substitute disk space for RAM memory when RAM memory fills up and more space is needed. The Linux kernel will swap out pages of memory that haven't been used recently out to disk to free up RAM for active programs. This mechanism is used by Linux to optimize performance and free up memory for prioritized operations.”


10. Virtual Desktop ?  KDE or Gnome
 (multiple desktop enviornment)

With the workspace switcher tool, you can map each desktop to a workspace and switch back and forth as needed. This helps users who use Linux to multitask in a more resource-friendly, faster way.”

11.  What is the advantage of open source?

Open source allows you to distribute your software, including source codes freely to anyone who is interested. People would then be able to add features and even debug and correct errors that are in the source code. They can even make it run better and then redistribute these enhanced source code freely again. This eventually benefits everyone in the community.



 




No comments:

Post a Comment