Unit5 - Subjective Questions

INT249 • Practice Questions with Detailed Answers

1

Describe the three distinct modes of operation in the vi/vim editor. How do you switch between them?

2

Differentiate between Hard Links and Soft (Symbolic) Links in Linux. Provide the commands to create each.

3

Explain the Linux file permission system using the Octal (Numeric) method. Calculate the numeric value for the permission string -rwxr-x--x.

4

Discuss the usage of the find command. Provide syntax examples to search for files based on name, size, and modification time.

5

Explain the concept of I/O Redirection and Piping in Linux with suitable examples.

6

What is grep? Explain its usage with at least three different options (flags) and a Regular Expression example.

7

Describe the purpose of the cut, sort, and uniq commands when processing text files.

8

Explain the role of the sed command. Provide an example of how to perform a substitution operation on a file.

9

Detail the Linux Boot Process step-by-step, from the moment the power button is pressed until the login prompt appears.

10

What are Kernel Modules? Why is the modular kernel approach preferred over a monolithic static kernel?

11

Differentiate between the commands insmod and modprobe. Which one is recommended and why?

12

Explain the significance of the /proc filesystem in Linux. How is it different from standard filesystems?

13

Write the commands to:

  1. List currently loaded kernel modules.
  2. Remove a module from the kernel.
  3. Display information about a specific module file.
14

Explain the role of GRUB2 configuration files. How do you regenerate the main configuration file after making changes?

15

What is initramfs? Why is it required during the Linux boot process?

16

Compare Systemd targets with SysVinit runlevels. List the Systemd equivalents for runlevels 1, 3, and 5.

17

Describe how to perform advanced text processing using awk. Provide a syntax example to print specific columns based on a condition.

18

How would you persistently blacklist a kernel module so that it does not load during boot? Explain the steps.

19

Explain the usage of the locate command. How does it differ from find in terms of performance and database usage?

20

What are kernel parameters? How can you temporarily modify kernel parameters during the boot process using the GRUB menu?