Skip to main content

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

Multiple choice

Which command displays your current working directory?

Question 1b

Multiple choice

What is the function of the 'man' command?

Question 1c

Multiple choice

Which key combination exits nano?

Question 1d

Multiple choice

The 'whoami' command outputs:

Question 1e

Multiple choice

In vim, what command saves and quits?

Group 2

This section covers aliases, environment variables, and shell configuration files.

Question 2a

Multiple choice

To create a temporary alias for 'ls -l', use:

Question 2b

Multiple choice

Which variable contains the user's home directory path?

Question 2c

Multiple choice

Which file applies configuration changes for all users?

Question 2d

Multiple choice

Which command lists all active environment variables?

Question 2e

Multiple choice

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

Multiple choice

Which symbol appends output to a file?

Question 3b

Multiple choice

What does the '|' operator do?

Question 3c

Multiple choice

The command 'cat file.txt | grep error':

Question 3d

Multiple choice

To create a new directory, use:

Question 3e

Multiple choice

The command 'rm *.txt' will:

Group 4

This section covers links, the filesystem hierarchy, locating/searching files, and text stream processing.

Question 4a

Multiple choice

Which command creates a symbolic link?

Question 4b

Multiple choice

The directory '/etc' primarily stores:

Question 4c

Multiple choice

Which command finds a file by name?

Question 4d

Multiple choice

To display all lines containing "root" in /etc/passwd:

Question 4e

Multiple choice

The command 'cut -d: -f1 /etc/passwd' displays:

Question 4f

Multiple choice

What does the 'sort' command do?

Question 4g

Multiple choice

Which command removes duplicate lines in a sorted file?

Question 4h

Multiple choice

Which directory stores user-specific files?

Question 4i

Multiple choice

To count lines in a file, use:

Question 4j

Multiple choice

To combine two files line by line, use:

Question 4k

Multiple choice

Which command displays file permissions and ownership?

Question 4l

Multiple choice

The 'PATH' variable controls:

Question 4m

Multiple choice

Which command displays your current directory structure visually?

Question 4n

Multiple choice

The '/var/log' directory is used for:

Question 4o

Multiple choice

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.