The quiz questions are designed to test your understanding of the material covered in this hour.
The command to create a new directory in FreeBSD is
Which of the following directory names are legal? (Choose all applicable answers.)
This is a directory
The a option to the ls command does which of the following?
It causes all files to be listed.
It shows files beginning with a period (.).
All of the above.
None of the above.
The ls command does not have a a option.
The command rm * will perform which of the following actions? (Choose the best answer.)
It will delete a file that is named *.
It will delete a file that contains the * character.
It will delete all the files in the current directory.
It will do nothing at all because * is an illegal filename.
rm is not a valid FreeBSD command.
D is the correct answer. None of the other commands listed are valid FreeBSD commands.
A, C, and D are legal directory names. B is illegal because it contains spaces and is not quoted. E is illegal because directory names cannot begin with a dash unless quoted.
The correct answer is C.
The best answer is C. The * is a wildcard that will match all existing files in the directory.