Linux Pro 6.0 — Unit 2 End-of-Unit Assessment
This assessment covers key objectives from Linux Pro 6.0 Unit 2: Using Linux. It is divided into sections based on the main topics and objectives. Answer each multiple-choice question by selecting the best answer (A–D). Recommended time: 35–45 minutes. Passing score: 70% or higher.
Group 1
This section covers the Linux shell, help commands, and text editors (nano and vim).
Question 1a
Which command displays your current working directory?
Question 1b
What is the function of the 'man' command?
Question 1c
Which key combination exits nano?
Question 1d
The 'whoami' command outputs:
Question 1e
In vim, what command saves and quits?
Group 2
This section covers aliases, environment variables, and shell configuration files.
Question 2a
To create a temporary alias for 'ls -l', use:
Question 2b
Which variable contains the user's home directory path?
Question 2c
Which file applies configuration changes for all users?
Question 2d
Which command lists all active environment variables?
Question 2e
To make an alias permanent, add it to:
Group 3
This section covers redirection, piping, command substitution, and working with directories and files.
Question 3a
Which symbol appends output to a file?
Question 3b
What does the '|' operator do?
Question 3c
The command 'cat file.txt | grep error':
Question 3d
To create a new directory, use:
Question 3e
The command 'rm *.txt' will:
Group 4
This section covers links, the filesystem hierarchy, locating/searching files, and text stream processing.
Question 4a
Which command creates a symbolic link?
Question 4b
The directory '/etc' primarily stores:
Question 4c
Which command finds a file by name?
Question 4d
To display all lines containing "root" in /etc/passwd:
Question 4e
The command 'cut -d: -f1 /etc/passwd' displays:
Question 4f
What does the 'sort' command do?
Question 4g
Which command removes duplicate lines in a sorted file?
Question 4h
Which directory stores user-specific files?
Question 4i
To count lines in a file, use:
Question 4j
To combine two files line by line, use:
Question 4k
Which command displays file permissions and ownership?
Question 4l
The 'PATH' variable controls:
Question 4m
Which command displays your current directory structure visually?
Question 4n
The '/var/log' directory is used for:
Question 4o
Which command merges two files by matching a common field?
Teach with AI superpowers
Why teachers love Class Companion
Import assignments to get started in no time.
Create your own rubric to customize the AI feedback to your liking.
Overrule the AI feedback if a student disputes.