Linux Interview Questions and Answer

Posted by

What is Linux?

Linux is an open-source operating system (OS). An operating system is software that directly manages a system’s hardware and resources, like CPU, memory, and storage. The OS sits between applications and hardware and makes the connections between all of your software and the physical resources that do the work.

What are Linux OS Flavors?

Popular Linux distros

  • Android.
  • Arch Linux.
  • Centos.
  • Debian.
  • Elementary OS.
  • Fedora Linux.
  • Gentoo Linux.
  • Kali Linux.

What is Kernel?

hardware–> kernel
kernel is important for all the OS.
The kernel is a computer program.

The Linux kernel enables the communication between hardware and software via drivers included in the kernel or added via kernel modules. It is also in charge of managing the system’s resources, including as memory management, process and task management, and disc management.
(it is talking to hardware and human layers).

What is virtual box?
It is hypervisor, managing vms(virtual Machine system).

What is filesystem?

collection of files/directly for certain purpose.

Types of Filesystem

boot filesystem —–This is a Kernel
root filesystem —— what you see… war,etc,linex opt
user filesystem —— c:\users\Roshan Kumar> start .(dot)

What is absolute path and relative path?

Absolute path ====> start from the root.
Relative Path ====> start from current directory.

What is VM?
It is hypervisor
on the top of base kernel. It contains( boot filesystem, root filesystem, user filesystem, App filesystem) in form of image .
Then, It creates
one instance (virtual machine) and many more virtual machine. It sends in the form of an image what you have in the image to one instance (virtual machine) and many more instances (virtual machine) where image goes through kernel{This is not base kernel}, then root, then user, then application).
They behave like independently
but it not independent all are control by base kernal and hardware.