Top 10 Linux Interview Question & Answers in 2022

  1. Explain of Linux?

Linux is an operating system based on UNIX, and was first displayed by Linus Torvalds. It relies on upon the Linux Kernel, and can run on different hardware platforms made by Intel, MIPS, IBM, HP, SPARC and Motorola. The other common element in Linux is its mascot, a penguin figure named Tux.

  1. What is the difference between UNIX and LINUX?

UNIX at first begun as a propriety operating system from Bell Laboratories, which later on produced into different commercial versions. On the other hand, Linux is free, open source and intended as a non-authenticity operating system for the masses.

  1. What is BASH?

BASH is short for Bourne Again Shell. It was made by Steve Bourne as a replacement to the primary Bourne Shell (addressed by/repository/sh). It unites each one of the components from the original version of Bourne Shell, plus additional functions to make it easier and simpler to use. It has since been adapted as the default shell for most systems running Linux.

  1. What is the advantage of open source?

Open source empowers you to pass on your software, including source codes freely to anyone who is fascinated. People would then have the ability to incorporate highlights and even investigate and correct errors that are in the source code. They can even improve its running, and after that redistribute these improved source code freely again. This definitely benefits everyone in the community.

  1. What are the basic components of Linux?

Linux has these components: kernel, shells and GUIs, system utilities and application program. What makes Linux productive over other operating system is that every perspective goes with additional features and all codes for these are downloadable for free.

  1. What is the importance of the GNU project?

This so-called free software movement allows several benefits, such as the freedom to run programs for any purpose and freedom to study and modify a program to your needs. It also enables you to redistribute copies of software to other people, as well as freedom to improve software and have it released to the public.

  1. What is CLI?

CLI (Command Line Interface) is the interface that empowers customer to write declared commands to prepare the PC to implement operations. CLI offers a perfect flexibility. Regardless, other customers who are already familiarizing with using GUI find it difficult to recall commands consolidating properties that come with it.

  1. How do you open a command prompt when issuing a command?

To open the default shell, press Ctrl-Alt-F1. This will give a command line interface (CLI) from which you can run commands as required.

  1. How can you find out how much memory Linux is using?

From a command shell, use the “concatenate” command: cat /proc/meminfo for memory usage information. You should see a line starting something like: Mem: 64655360, etc. This is the total memory Linux thinks it has available to use.

  1. What is typical size for a swap partition under a Linux system?

The favored size for a swap partition is twice the measure of physical memory available on the system. If this is not possible, then the base size should be the same as the measure of memory installed.

  1. Does the Ctrl +Alt + Del key combination work on Linux?

Yes, it does. Same like Windows, you can use this key combination to play out a system restart. One difference is that you won’t be getting any confirmation message and thusly, reboot is fast.

  1. Are drives such as hard drive and floppy drives represented with drive letters?

No. In Linux, each drive and device has different assignments. For example, floppy drives are insinuated as/dev/fd0 and/dev/fd1. IDE/EIDE hard drives are implied as/dev/hda,/dev/hdb,/dev/hdc, and so on.

  1. In Linux, what names are assigned to the different serial ports?

Serial ports are recognized as/dev/ttyS0 to/dev/ttyS7. These are the equivalent names of COM1 to COM8 in Windows.

  1. How do you access partitions under Linux?

Linux consigns numbers toward the complete of the drive identifier. For example, if the main IDE hard drive had three basic allocations, they would be named/numbered, /dev/hda1, /dev/hda2 and/dev/hda3.

Add a Comment

Your email address will not be published. Required fields are marked *