Thursday, 2 May 2024

Important Linux Interview Questions and Answers

 

1. Define Linux?

Linux is an operating system based on UNIX and Linux Kernel it can run on various hardware stage built by Intel, MIPS, HP, IBM, SPARC and Motorola. It was first established by Linus Torvalds and its Mark able element is its mascot, a penguin figure named Tux.

2. What is the Difference between Linux and UNIX?

The difference between Linux and UNIX are: UNIX began as a propriety operating system from Bell Laboratories, which later included into various commercial versions but Linux is free, open source and deliberate as a non-propriety operating system for the masses.

3. What is LILO?

LILO is a boot loader for Linux. It is specially used to load the Linux operating system into main memory so that it can begin its operations.

4. What are basic components of Linux?

The basic Linux components are: kernel, shells and GUIs, system utilities, and application program. What makes Linux advantageous over other operating system is that every aspect comes with additional features and all codes for these are downloadable for free.

5. In Linux, what names are assigned to the different serial port?

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

6. What are the contents in usr/local?

It contains locally installed files. This directory actually matters in environments where files are stored on the network. Specifically, locally-installed files go to /usr/local/bin, /usr/local/lib, etc.). Another application of this directory is that it is used for software packages installed from source, or software not officially shipped with the distribution.

7. What are the different Modes when using vi editor?

There are 3 modes under vi:
  • Command mode – the mode where you start in.
  • Edit mode – the mode that permit you to do text editing.
  • Ex mode – the mode wherein you interact with vi with instructions to process a file.

    8. What is redirection?

    Redirection is the procedure of directing data from one output to another. It can also be used to direct an output as an input to another process.

    9. What is grep command?

    Grep a search command that makes use of pattern-based searching. It makes use of options and parameters that is specified along the command line and applies this pattern into searching the required file output.

    10. How to enable ACLs foe /home partition?

    Add following entry in /etc/fstab
      LABEL=/home /home ext3 acl 1 2
      Now remount /home partition with acl option.
      mount -t ext3 -o acl /dev/sda3 /home
  • No comments:

    Post a Comment