Unit1 - Subjective Questions

CSE325 • Practice Questions with Detailed Answers

1

Differentiate between the Linux Kernel and a Linux Distribution. Why are there so many different Linux distributions?

2

Explain the Linux File System Hierarchy (FHS). Describe the purpose of the following directories: /bin, /etc, /var, /home, and /root.

3

Compare and contrast the Debian family and the Red Hat family of Linux distributions. Include their package managers and default file formats.

4

Explain the concept of File Permissions in Linux. How is the octal representation calculated? If a file has permissions -rwxr-xr--, what does this signify?

5

Describe the difference between Hard Links and Soft (Symbolic) Links with the help of commands.

6

What is I/O Redirection in Linux? Explain the usage of standard input, standard output, and standard error with examples.

7

Discuss Process Management in Linux. Explain the purpose of ps, top, and kill commands.

8

Explain the structure of the /etc/passwd and /etc/shadow files. Why is /etc/shadow necessary?

9

How do you manage Users and Groups in Linux? Discuss the commands useradd, usermod, groupadd, and passwd.

10

Differentiate between sudo and su commands. What is the role of the /etc/sudoers file?

11

What is a Package Manager? Explain the difference between High-level (e.g., apt, yum) and Low-level (e.g., dpkg, rpm) package management tools.

12

Explain the significance of Repositories in Linux Package Management. How does apt update differ from apt upgrade?

13

Describe the usage and output of the following command line utilities: ls, cd, mkdir, rm, cp, and mv.

14

What is Grep? Explain its usage with Regular Expressions (Regex). Give an example to find lines containing "Error" in a log file.

15

Explain the concept of Dependency Hell in the context of Linux software installation. How do modern package managers solve this?

16

Discuss the purpose and syntax of the chmod and chown commands. How would you change the owner of a file to 'user1' and the group to 'group1'?

17

What are Universal Package Managers? Compare Snap and Flatpak with traditional package managers like APT.

18

Explain the process of Compiling Software from Source in Linux. What are the typical steps involved (e.g., ./configure, make, make install)?

19

What is the Root User? Why is it advised not to log in as root for daily tasks?

20

Define Archiving and Compression in Linux. Explain the usage of the tar command for creating and extracting archives.