Font size
WorksheetsCyberCamp 4 Security and the Command Line Review (Standard)
Total questions: 8
Worksheet time: 4mins
Type ________ to view the manual for the password file.
cat /etc/passwd
man 5 passwd
man passwd
etc/passwd
In the password field, what does x denote?
User Name
Unique Identifier
The password is stored in shadow file
The password is wrong
The who command prints your current username.
True
False
What kind of file starts with a dot (.)?
Hidden file
Deleted file
Unauthorized file
Secret file
Which command shows all the files, including hidden files?
Is -a
Is -ab
Is -hide
Is -all
Arrange the commands in the following order: Switch to root, Add user, Remove user, Create a new group.
sudo su -> sudo deluser [user] -> sudo adduser [user] -> sudo groupadd [group]
sudo groupadd -> [group] sudo su -> sudo deluser [user] -> sudo adduser [user]
sudo deluser [user] -> sudo adduser [user] -> sudo groupadd [group] -> sudo su
sudo su -> sudo adduser [user] -> sudo deluser [user] -> sudo groupadd [group]
Type the command to change the password for a user named Fiona.
(a)
chown [OWNER] [FILE] will "change mode."
True
False
