NEW
Font size
WorksheetsLinux Practice Quiz 2
Total questions: 12
Worksheet time: 4mins
Which command will allow a user to change the permissions of a file?
chperm
chown
chmod
perm
Changing the user owner of a file requires administrative access.
True or False?
True
False
The mv command requires at least two arguments.
True or False?
False
True
Which command can be used to copy a file?
cp
rm
cy
mv
Which option to the rm command will allow a user to delete directories?
-l
-d
-a
-r
Which of the following lines would not be returned by the grep ‘[^0-9]’ file.txt command?
My favorite food is avocados.
I am 37 years old
Hello my name is Joe.
3121991
Which of the following lines would be returned by the grep ‘b[oe]t’ file.txt command?
beet
bet
boot
boet
Which of the following commands will not shutdown the system immediately?
shutdown now ‘Goodbye World!’
shutdown now
shutdown
shutdown +0
Which of the following commands will display every process?
ps –all
ps -e
ps -a
ps
The ps command requires administrative access.
True or False?
True
False
Which of the following will delete all of a package’s files?
apt-get remove
apt-get trash
apt-get purge
apt-get delete
The root user can change the password of any user.
True or False?
False
True
