---
title: "Linux: System Administration Fundamentals"
description: "Test your knowledge of Linux fundamentals with a quiz covering essential commands, file system navigation, permissions, process management, package managers, and Linux administration best practices."
author: "Mohammad Abu Mattar"
canonical: https://mkabumattar.com/quizzes/post/linux-system-administration-fundamentals-quiz
---

# Linux: System Administration Fundamentals

Welcome to the Linux Basics Quiz! This quiz covers fundamental Linux concepts, commands, and system administration best practices. Each question is multiple-choice, and you'll find hints to help you along the way. Good luck!

## Questions

### 1. Which command is used to display the current working directory?

- `dir`
- `pwd`
- `lpwd` 
- `path`

**Hint:** Think: "Print Working Directory".

### 2. Which symbol represents the home directory of the current user?

- `/`
- `~`
- `.`
- `#`

**Hint:** It is the wavy character (~).

### 3. What does the command "chmod 777 file.txt" do?

- Sets the file to read-only for all system users
- Grants read, write, and execute rights to everyone
- Changes the ownership of the file to the root user
- Makes the file invisible within standard listings

**Hint:** 7 is the sum of Read (4), Write (2), and Execute (1).

### 4. Which command is used to view the contents of a file without opening an editor?

- `ls`
- `cat`
- `grep`
- `touch` 

**Hint:** Think: "Concatenate".

### 5. What is the "Root" user in Linux?

- A system account used for basic guest access
- The superuser account with unrestricted system access
- The first user created during the OS installation
- The default directory where all user data is stored

**Hint:** The account with UID 0.

### 6. Which command allows a user to run a command with superuser privileges?

- `sh` 
- `sudo`
- `su`
- `run` 

**Hint:** "Substitute User Do".

### 7. Where are system-wide configuration files usually stored?

- `/bin`
- `/etc`
- `/var`
- `/usr`

**Hint:** Think: "Editable Text Configuration".

### 8. Which command lists all currently running processes?

- `proc`
- `ps`
- `list` 
- `jobs`

**Hint:** Short for "Process Status".

### 9. What does the "grep" command do?

- Compresses files into a single archive
- Searches for a specific pattern within text
- Calculates the total size of a directory
- Displays summary of system hardware

**Hint:** Global Regular Expression Print.

### 10. Which command is used to remove a directory and all its contents?

- `rmdir`
- `rm -rf`
- `del /s`
- `wipe` 

**Hint:** Requires "recursive" and "force" flags.

### 11. What is a "Man Page"?

- A specialized script for user setup
- The built-in documentation for commands
- A utility to monitor system memory
- A text-mode interface for web browsing

**Hint:** The primary source of Linux help.

### 12. Which command is used to change the owner of a file?

- `chmod`
- `chown`
- `chgrp`
- `set` 

**Hint:** Change Owner.

### 13. What does the "|" (pipe) operator do?

- Merges two files into a single document
- Sends the output of one command to another
- Terminates a process running in background
- Generates a temporary backup of a file

**Hint:** Connecting the output of A to the input of B.

### 14. Which package manager is native to Debian-based systems?

- `yum` 
- `apt` 
- `dnf` 
- `rpm` 

**Hint:** Advanced Package Tool.

### 15. What does "df -h" show?

- The list of currently open files
- Available space on mounted filesystems
- The total size of a specific file
- Active network interface statistics

**Hint:** Disk Free - Human Readable.

### 16. Which character overwrites a file with command output?

- `>>`
- `>`
- `<`
- `&`

**Hint:** Standard output redirection.

### 17. What is "systemd"?

- A kernel module for disk management
- The primary system and service manager
- A tool for managing network firewalls
- A protocol for remote file sharing

**Hint:** The modern init system.

### 18. How do you see the last 10 lines of a file?

- `last`
- `tail`
- `end` 
- `less`

**Hint:** Think of the end of an animal.

### 19. What is the purpose of the /tmp directory?

- Stores sensitive user password data
- Holds temporary files cleared at boot
- Contains permanent system binaries
- Keeps network configuration backups

**Hint:** Files here usually vanish after a reboot.

### 20. How do you kill a process if you know its ID?

- `stop`
- `kill`
- `exit`
- `end` 

**Hint:** Sends a signal (TERM or KILL).

### 21. Which command searches for files by name or size?

- `locate`
- `find`
- `where` 
- `grep` 

**Hint:** Searches the live filesystem tree.

### 22. What is a "Shebang" ( #! )?

- A comment line ignored by the shell
- A line specifying the script interpreter
- A flag to enable script optimization
- A permission that allows execution

**Hint:** The very first line of a script.

### 23. Where is local user group information stored?

- `/etc/passwd`
- `/etc/group` 
- `/etc/shadow`
- `/etc/config`

**Hint:** Found in the /etc directory.

### 24. What is a "Symbolic Link" (Soft Link)?

- A full copy of the original file data
- A pointer to another file or directory
- A hidden version of a system binary
- A backup file used for system recovery

**Hint:** Like a shortcut in Windows.

### 25. Which command shows the manual for a command?

- `help` 
- `man`  
- `info` 
- `show` 

**Hint:** Manual.

### 26. What does the /dev directory contain?

- Source code for local development
- Files representing hardware devices
- Developer tools like the GCC compiler
- User-specific desktop configuration

**Hint:** Everything is a file.

### 27. How do you view hidden files?

- `ls -h`
- `ls -a`
- `ls -l`
- `ls -s`

**Hint:** Show "All".

### 28. Which command provides an interactive process list?

- `ps`  
- `top` 
- `view` 
- `stat` 

**Hint:** It sits at the "top" of the list.

### 29. What does "tar -cvf" do?

- Extracts an existing archive file
- Creates a new archive from files
- Deletes a folder and its contents
- Encrypts a file for secure transport

**Hint:** Create, Verbose, File.

### 30. What is the PID 1 process?

- The Linux Kernel
- The Init system (like systemd)
- The Bash Shell
- The Root User

**Hint:** The ancestor of all other processes.
