Unit 1: Linux Command Line and User Management - Subjective Questions

CSE493 — Linux System Administration • Practice Questions with Detailed Answers

20 questions

1

Explain the different methods of accessing the Linux command line. Compare accessing the command line through a local console with accessing it through a desktop environment.

2

Describe the process of executing commands using the Bash shell. Explain the role of the shell prompt, command syntax, options, and arguments.

3

Explain the Linux File System Hierarchy. Describe the purpose of /, /home, /etc, /var, /usr, /tmp, and /root.

4

Compare absolute and relative pathnames in Linux. Give suitable examples showing how each is used to access files and directories.

5

Explain how files can be located by name in Linux. Compare the use of the find and locate commands, including their advantages and limitations.

6

Describe the major command-line tools used to manage files and directories in Linux. Include examples of creating, copying, moving, renaming, and deleting files.

7

Explain pathname expansion in Bash. Describe the use of *, ?, and bracket expressions, and distinguish pathname expansion from regular expressions.

8

Explain shell expansion and quoting in Bash. Discuss variable expansion, command substitution, tilde expansion, and the effects of single and double quotation marks.

9

Explain how a Linux administrator can obtain help in Red Hat Enterprise Linux using the man, pinfo, and /usr/share/doc resources.

10

Describe how Red Hat Enterprise Linux users can obtain help from Red Hat. Explain the role of local documentation, Red Hat documentation, and support services.

11

Explain the techniques used to create, view, and edit text files from the Linux command line. Include the purposes of cat, less, head, tail, and a shell text editor.

12

Explain output redirection in Bash. Distinguish between >, >>, standard error redirection, and pipes, giving suitable examples.

13

Compare editing text files from the shell prompt with editing them using a graphical editor. State the advantages, limitations, and appropriate uses of both methods.

14

Explain the Linux concepts of users, groups, user IDs, and group IDs. How do these concepts support file ownership and access control?

15

Describe the methods of gaining superuser access in Linux. Compare using su with using sudo, and explain why superuser access should be used carefully.

16

Explain how local user accounts are managed in Linux. Describe the purposes of useradd, usermod, and userdel, including important account properties.

17

Describe how local groups are created, modified, and deleted in Linux. Explain the difference between a user's primary group and supplementary groups.

18

Explain how user passwords are managed in Linux. Include password creation, modification, expiration, and basic security practices.

19

Describe the relationship among /etc/passwd, /etc/group, and /etc/shadow. Explain the main fields stored in each file and why their permissions are important.

20

A user reports that they cannot access a configuration file. Derive a systematic command-line procedure to diagnose the problem using ownership, groups, permissions, and superuser access.