wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Quiz 1 System Admin

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Which term describes the interpreter that executes commands that are typed as strings?

a)

Shell

b)

Console

c)

Command

d)

Terminal

2.

Which Bash command displays the last five lines of the /var/log/messages file?

a)

less 5 /var/log/messages

b)

head -n 5 /var/log/messages

c)

tail -l 5 /var/log/messages

d)

tail -n 5 /var/log/messages

3.

Which directory contains user home directories?

a)

/user

b)

/

c)

/home

d)

/root

4.

Which directory contains system files to access hardware?

a)

/etc

b)

/dev

c)

/usr

d)

/run

5.


Which directory is the administrative superuser's home directory?

a)

/

b)

/etc

c)

/home/root

d)

/root

6.

Which directory contains installed software programs and libraries?

a)

/lib

b)

/usr

c)

/etc

d)

/var

7.

Which command displays the absolute path name of the current working directory?

a)

dir

b)

cd

c)

pwd

d)

ls -d

8.

Which command returns to your home directory, assuming that the current working directory is /tmp and /home/user is your home directory?

a)

cd /home

b)

cd

c)

cd /user

d)

cd /

9.

Which command lists files in the current working directory, with a long format, and including hidden files?

a)

ls -hide

b)

ls -a

c)

ls -l

d)

ls -al

10.

A user can use the passwd command to change another user's password.

a)

True

b)

False

11.

Linux require file name extensions to classify files by type.

a)

True

b)

False

12.

What is the function of cat command used in Linux?

a)

to create single or multiple files and to redirect contents of the file to a terminal or to files

b)

to view the contents of files

c)

to create single or multiple files, to view the contents of files, to concatenate the contents from various files, and to redirect contents of the file to a terminal or to files

13.

Why do we need to use the wc command?

a)

To write and change the number of lines, words, and bytes in the zcat script

b)

To display the number of lines, words, and bytes in the zcat script

c)

To write and change the number of lines, words, and bytes in the zip folder

14.

Which directory contains persistent, system-specific configuration data?

a)

/root

b)

/etc

c)

/run

d)

/var

15.

Which command changes the working directory to /tmp if /home/student is the current working directory?

a)

cd tmp

b)

cd ~tmp

c)

cd ../../tmp

d)

cd home/tmp

16.

What file names that begin with a dot (.)is referring to?

a)

Zipped File

b)

Installed File

c)

Hidden File

17.

Which Bash command displays the file type?

a)

cat

b)

file

c)

view

d)

display

18.

Which sign indicates the superuser shell?

a)

$

b)

#

c)

*

d)

%

19.

Which command is used for a user on the host machine to log in to the remote Linux system remotehost as the remoteuser user

a)

ssh remoteuser

b)

ssh remoteuser@remotehost

c)

ssh remotehost

20.

Which term describes an interface that provides a display for output and a keyboard for input to a shell session?

a)

virtual console

b)

console

c)

terminal

d)

bash shell