wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Linux Fundamentals Quiz

Total questions: 26

Worksheet time: 13mins

Name
Class
Date
1.

What is the primary function of the Linux kernel?

a)

To provide a graphical user interface

b)

To compile software applications

c)

To manage hardware resources and system operations

d)

To store user data and files

2.

Which of the following is a Linux distribution?

a)

iOS

b)

Windows 10

c)

macOS

d)

Ubuntu

3.

What does the command 'pwd' do in Linux?

a)

Lists files in the current directory

b)

Changes the current directory

c)

Removes a file

d)

Prints the current working directory

4.

Which directory contains user-specific files and directories?

a)

/home

b)

/bin

c)

/var

d)

/etc

5.

What is the purpose of the '/etc' directory?

a)

To store user home directories

b)

To contain system configuration files

c)

To hold temporary files

d)

To store device files

6.

Which command is used to list all files, including hidden ones, in a directory?

a)

ls -r

b)

ls -h

c)

ls -a

d)

ls -l

7.

What does the 'cd' command do?

a)

Deletes a file

b)

Displays the contents of a file

c)

Changes the current directory

d)

Creates a new directory

8.

Which shell is the default on most Linux distributions?

a)

Zsh

b)

Fish

c)

Bash

d)

Ksh

9.

What is the significance of the '/' in a Linux file path?

a)

It is used to separate file extensions

b)

It denotes a hidden file

c)

It represents the root directory

d)

It indicates a user directory

10.

Which command is used to remove a directory in Linux?

a)

mkdir

b)

rmdir

c)

rm -d

d)

del

11.

What does the 'man' command do?

a)

Lists all files in a directory

b)

Displays the manual page for a command

c)

Changes file permissions

d)

Compiles source code

12.

Which directory contains system binaries for administration?

a)

/tmp

b)

/usr

c)

/sbin

d)

/lib

13.

What is the purpose of the '/proc' directory?

a)

To store user data

b)

To provide information about running processes

c)

To contain system logs

d)

To hold executable binaries

14.

Which command is used to clear the terminal screen?

a)

erase

b)

reset

c)

cls

d)

clear

15.

What does the 'touch' command do?

a)

Deletes a file

b)

Changes file permissions

c)

Creates a new file

d)

Displays file contents

16.

Which of these is not a function of an OS:

a)

Provide a user interface

b)

Communicate with hardware

c)

Allow the computer to multi-task

d)

Improves CPU performance

17.
In an interface like the one shown in the accompanying picture, a user types commands or presses special keys on the keyboard (such as function keys or key combinations) to enter data and instructions. What is the term for this kind of interface?
a)
Command-line interface
b)
Menu-driven interface
c)
Performance-monitor interface
d)
Graphical user interface (GUI)
18.

I want to create a new directory called foo, I use which command?

a)

foo

b)

make directory foo

c)

mkdir foo

19.

What does the ls -a command do in Linux?

a)

List files in reverse order

b)

List hidden files

c)

Display files in human readable format

d)

Sort files by size

20.

Which command is used to display the contents of a text file in Linux?

a)

ls

b)

clear

c)

pwd

d)

cat

21.

Which directory typically contains log files in a Linux system?

a)

/boot

b)

/var/log

c)

/usr/bin

d)

/home

22.

Purpose of /etc

Which statement best describes the primary role of the /etc directory?

a)

A. Stores users’ personal documents and media files

b)

B. Holds system-wide configuration files that programs read at start-up

c)

C. Contains essential binaries (ls, cp, cat) for single-user mode

d)

D. Provides temporary scratch space that is wiped on reboot

23.

What is typically found under /home on a standard Linux system?

a)

A. Kernel modules and device drivers

b)

B. System log files rotating daily

c)

C. Per-user home directories (e.g., /home/alice) with personal data

d)

D. Daemon executables like sshd and nginx

24.

Which statement is true?

a)

A. / and /root are aliases pointing to the same directory.

b)

B. / is the filesystem root, while /root is the home directory for the root user.

c)

C. /root contains essential binaries; / is used only for user data.

d)

D. /root is a temporary directory cleared on every reboot.

25.

What does the path ../images/logo.png mean when executed inside /home/alice/projects/site?

a)

A. /images/logo.png

b)

B. /home/alice/images/logo.png

c)

C. /home/alice/projects/images/logo.png

d)

D. /home/images/logo.png

26.

Running cd with no arguments does what on most shells?

a)

A. Fails with “missing operand.”

b)

B. Takes you to the previous directory (cd -).

c)

C. Takes you to the same location as cd ~ (your home directory).

d)

D. Takes you to the filesystem root /.