8

Ace your homework & exams now with Quizwiz!

The command rm -r will... remove a directory along with any files or subdirectories. generate an error; -r isn't a valid option. remove only empty directories. prompt for each confirmation before deleting each file in a directory.

remove a directory along with any files or subdirectories.

Which of the following are glob characters? (choose three) The square brackets "[" and "]" The question mark "?" The dash character "-" The asterisk "*"

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 False

True

The main purpose of using glob characters is to be able to provide a list of filenames to a command. True or False? True False

True

The rm command can delete multiple files at once. True or False? True False

True

When using the cp command, you must provide both a source and a destination. True or False? True False

True

Which command would list files that do not begin with a "T" or a "W"? echo /etc/*[TW!] echo /etc/!TW echo /etc/[!TW]* echo /etc/[*TW]!

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 echo /etc/*?.*o? ls /etc/p???.**

ls /etc/???.???? echo /etc/???.*f

Which of the following commands can be used to rename a file? cp rm mv name

mv

Which option can be used with the rm command to prompt before deleting? A -P l -i

-i

Which option(s) can be used to prevent cp from overwriting an existing file? (choose two) -z -n -N -i

-n -i

Brackets cannot be used to a represent a range of characters. True or False? True False

False

The touch command can be used to: (choose two) Update the timestamp of existing files Change ownership of a file Create new files Change a file's name

Update the timestamp of existing files Change a file's name


Related study sets

Chapter 15 PrepU: Assessing Head and Neck

View Set

Chapter 17 "Bipolar and Related Disorders" NEW

View Set

PSY101 Final Exam Review (13-15)

View Set

Module 2 immunology practice questions

View Set

13. Мова і мовлення

View Set

Pediatric CARDIOVASCULAR DISORDERS-sanders

View Set