Unit 3: Linux File System and File Management - Subjective Questions

CSE105 — Creative Engineering Workshop • Practice Questions with Detailed Answers

20 questions

1

Explain the Linux File System Hierarchy and describe why Linux follows a single-rooted, tree-like structure.

2

Describe the Root Directory Structure in Linux and list at least six top-level directories with their purposes.

3

Distinguish between the /bin and /sbin directories in Linux with suitable examples.

4

Explain the purpose of the /etc, /var, and /tmp directories with examples of files they may contain.

5

Compare the /usr and /opt directories. What kinds of software are stored in each?

6

Define Absolute Path and Relative Path. Distinguish between them with suitable examples.

7

Explain the pwd and cd commands. How are they used for navigating the Linux file system?

8

Describe the ls command and explain at least five commonly used options with examples.

9

Explain the mkdir and rmdir commands. How do they create and remove directories? Include examples of creating nested directories.

10

Explain the touch and cat commands. Describe the multiple uses of the cat command with examples.

11

Explain the cp, mv, and rm commands with their important options and examples.

12

Explain the su command in Linux. How does it help in switching users, and what is the difference between su and su -?

13

What is the use of the clear and history commands? Explain how the command history can be reused efficiently.

14

Explain the find command in detail. Describe how it can be used to search files by name, type, and size with examples.

15

Explain the tree command for directory visualization. How is it useful and what are some of its common options?

16

Distinguish between the du and df commands. Explain their purpose and important options with examples.

17

Explain the significance of the /home and /lib directories in Linux.

18

Write short notes on any five basic file management commands in Linux, explaining their syntax and one example each.

19

Illustrate with an example how absolute and relative paths can be used together with commands like cd, cp, and ls to navigate and manage files. Describe a complete practical scenario.

20

Explain what happens internally when you use the read command in a shell, and describe its typical use in scripts with an example.