wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CyberCamp 4 Security and the Command Line Review (Standard)

Total questions: 8

Worksheet time: 4mins

Name
Class
Date
1.

Type ________ to view the manual for the password file.

a)

cat /etc/passwd

b)

man 5 passwd

c)

man passwd

d)

etc/passwd

2.

In the password field, what does x denote?

a)

User Name

b)

Unique Identifier

c)

The password is stored in shadow file

d)

The password is wrong

3.

The who command prints your current username.

a)

True

b)

False

4.

What kind of file starts with a dot (.)?

a)

Hidden file

b)

Deleted file

c)

Unauthorized file

d)

Secret file

5.

Which command shows all the files, including hidden files?

a)

Is -a

b)

Is -ab

c)

Is -hide

d)

Is -all

6.

Arrange the commands in the following order: Switch to root, Add user, Remove user, Create a new group.

a)

sudo su -> sudo deluser [user] -> sudo adduser [user] -> sudo groupadd [group]

b)

sudo groupadd -> [group] sudo su -> sudo deluser [user] -> sudo adduser [user]

c)

sudo deluser [user] -> sudo adduser [user] -> sudo groupadd [group] -> sudo su

d)

sudo su -> sudo adduser [user] -> sudo deluser [user] -> sudo groupadd [group]

7.

Type the command to change the password for a user named Fiona.

(a)  

8.

chown [OWNER] [FILE] will "change mode."

a)

True

b)

False