Unit4 - Subjective Questions

INT249 • Practice Questions with Detailed Answers

1

Explain the core principles of the Linux design philosophy. How does the concept "Everything is a file" affect system administration?

2

Describe the Linux directory structure. Differentiate between Absolute and Relative paths with examples.

3

Compare the different methods of obtaining help and documentation in a Linux environment: man, info, and --help.

4

Distinguish between su and sudo when assuming superuser privileges. Why is sudo generally considered more secure?

5

Explain the user creation process in Linux. What specific files and directories are modified when the useradd command is executed?

6

Detail the commands required to create a group named 'developers', add an existing user 'alice' to this group, and then delete the group.

7

How are user account profiles configured in Linux? Discuss the significance of /etc/skel and the difference between .bashrc and .bash_profile.

8

Explain the standard Linux file permissions model () for User, Group, and Others. How would you represent full permissions for the user, read-execute for the group, and no permissions for others numerically?

9

Derive the symbolic and octal notation for a file that needs the following permissions:

  • Owner: Read, Write, Execute
  • Group: Read, Write
  • Others: Read only
10

Describe how to modify file and directory ownership in Linux. Explain the commands chown and chgrp with examples.

11

Define Special Permissions in Linux: SUID, SGID, and Sticky Bit. Explain the function of each with an example.

12

What are file attributes in Linux, and how do they differ from standard permissions? Explain the usage of chattr and lsattr.

13

A user reports they cannot access a file despite being the owner. Outline a troubleshooting methodology to resolve this permission issue.

14

Describe the process of partitioning a new hard disk in Linux using fdisk. What are the limitations of MBR partitions?

15

Explain the architecture of Logical Volume Management (LVM). What are the advantages of using LVM over standard partitioning?

16

Write the sequence of commands to setup LVM. Assume you have two physical disks /dev/sdb and /dev/sdc, and you want to create a Volume Group named data_vg and a 10GB Logical Volume named backup_lv.

17

What is the role of the mkfs command? Compare the ext4 and XFS file systems.

18

Explain the concept of mounting in Linux. How do you make a mount persistent across reboots using /etc/fstab?

19

What is fsck and when should it be used? What precautions must be taken before running this command?

20

Apart from looking at configuration files, how can an administrator query user and group information using command-line tools? Describe id, who, and w.