wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Linux module 10 Administrative tasks

Total questions: 28

Worksheet time: 14mins

Name
Class
Date
1.

The process of sending print jobs from the print queue to the printer is called ____.

a)

spooling

b)

queuing

c)

redirecting

d)

printing

2.

You can clear a log file simply by redirecting noting into it.

a)

True

b)

False

3.

When a printer is disabled, ____.

a)

the print queue does not accept jobs and sends a message to the user nothing that the printer is unavailable

b)

the print queue accepts jobs into the print queue and holds them from there until the printer is enabled again

c)

the printer appears as offline when an IP request is sent

d)

the print queue redirects all print jobs sent to it to /dev/null

4.

What is the term used to describe a user providing a username and password to log in to a system?

a)

validation

b)

authorization

c)

login

d)

authentication

5.

What command can you to lock a user account?

a)

lock username

b)

secure username

c)

usermod -L username

d)

useradd -L username

6.

Which command can be used to temporarily alter the primary group associated with a given user?

a)

usermod

b)

chggrp

c)

gpasswd

d)

newgrp

7.

Which command can be used to send a print job to the default printer name Printer1?

a)

lp -d Printer1 file

b)

lp Printer1 file

c)

lp file

d)

lp -m Printer1 file

8.

What is the name of the file that contains a listing of all users on the system and their home directories?

a)

/etc/passwd

b)

/etc/users

c)

/etc/shadow

d)

/etc/password

9.

UIDs and GIDs are unique to the system and, once used, can never be reused.

a)

True

b)

False

10.

What is the name of the utility used to rotate log files?

a)

syslog

b)

jetpack

c)

logrotate

d)

logbackup

11.

You can lock a user account by changing the default login shell to an invalid shell in /etc/passwd.

a)

True

b)

False

12.

When a printer is rejecting requests, ____.

a)

the print queue does not accept jobs and sends a message to the user nothing that the printer is unavailable

b)

the print queue does not accept jobs into the print queue and holds them there until the printer is accepting requests again

c)

the printer appears as offline when an lp request is sent

d)

the print queue redirects all print jobs sent to /dev/null

13.

When refferring to the /etc/rsyslog.conf file, ____ specifies information from a certain area of the system, whereas ____ is the level of importance of that information.

a)

section, priority

b)

service, precedents

c)

process, degree

d)

facility, priority

14.

Most log files on the system are found in which directory?

a)

/etc/logfiles

b)

/etc/log

c)

/var/log

d)

/dev/log

15.

Which following file contains default information such as UID and GID ranges and minimum password length to be used at user creation?

a)

/etc/skel

b)

/etc/passwd

c)

/etc/login.defs

d)

/etc/default/useradd

16.

What command can you use to view journald log entries on a system that uses Systemd?

a)

less

b)

journaldctl

c)

syslog

d)

catlog

17.

Which command would you use to unlock a user account?

a)

unlock username

b)

open username

c)

passwd -u username

d)

useradd -U username

18.

Along with the listing of user accounts, the /etc/passwd file contains information on account expiry.

a)

True

b)

False

19.

You use lpstat and determine that a user named User1 has placed two large print jobs in the queue for Printer1 that have yet to start printing. They have print job IDs of Printer1-17 and Printer1-21, respectively. Which command would you use to remove these two jobs from the print queue?

a)

cancel Printer1-17 Printer1-21

b)

cancel -u Printer1-17 Printer1-21

c)

cancel -a Printer1-17 Printer1-21

d)

cancel 17 21

20.

Which command is used to delete a user account?

a)

usermod -d username

b)

del username

c)

userdel username

d)

rm username

21.

In which of the following directories can you place files that will be copied to new directories when new users are created?

a)

/etc/rc.d

b)

/etc/skel

c)

/usr/local/template

d)

/usr/local/useradd

22.

Which of the following commands can be used to set the number of days until user account jsmith with an expired password is disabled?

a)

usermod -f 15 jsmith

b)

usermod -d 15 jsmith

c)

usermod -x 15 jsmith

d)

usermod -e 15 jsmith

23.

Which of the following is a special group that provides its members with the ability to run the su and sudo commands?

a)

sudoers

b)

adm

c)

wheel

d)

sys

24.

Which of the following files stores information about failed logins on a Linux system?

a)

/var/log/btmp

b)

/var/log/wtmp

c)

/var/log/nolo

d)

/var/log/failed

25.

Which of the following is the first field of the /etc/passwd file?

a)

UID

b)

username

c)

GECOS

d)

GID

26.

Which of the following options can be used with the usermod command to change the description of the user account that is stored in the GECOS field?

a)

-g

b)

-d

c)

-c

d)

-s

27.

Which of the following commands can be used to set the default printer for all users on a Linux system where Printer1 is the name of the printer?

a)

lp -d printer1

b)

lpoptions -d printer1

c)

lpd -d printer1

d)

lpq --set-default printer1

28.

Which of the following commands will display the print jobs in the print queue for print1 only?

a)

lpstat -o printer1

b)

lpq -d printer1

c)

lpq -p printer1

d)

lp -j printer1