Linux Chapter 08 Exam
Which of the following are glob characters? (choose three)
The square brackets "[" and "]" The question mark "?" The asterisk "*"
The asterisk character is used to represent zero or more of any character in a filename. True or False?
True
When using the cp command, you must provide both a source and a destination. True or False?
True
Which command would list files that do not begin with a "T" or a "W"?
echo /etc/[!TW]*
Which of these commands will return /etc/gai.conf /etc/pam.conf /etc/ucf.conf? (choose two)
ls /etc/???.???? echo /etc/???.*f
Which of the following commands can be used to rename a file?
mv
The command rm -r will...
remove a directory along with any files or subdirectories
Which option can be used with the rm command to prompt before deleting?
-i
Which option(s) can be used to prevent cp from overwriting an existing file? (choose two)
-n -i
The touch command can be used to: (choose two)
Update the timestamp of existing files Change a file's name