Quiz 1: Basic Commands.


Answer the questions below. When you are satisfied with all your answers, press the Send button below to transmit your answers. At any time before that, you can change your responses.


Type your name:

Type in your CS login account name (not sunlab login account):

Type in your preferred email address:

Question 1: If you forget your password, can you use the passwd command to change your password?

Question 2: Unix file names must have a '.' character with a suffix consisting of one to three characters (true or false).

Question 3: All user home directories are at the root directory level in the Unix file system (true or false).

Question 4: What is the function of the '-F' option in the ls command?

Question 5: What is the result of issuing the command
cd /

Question 6: Assume you are in your home directory and have a subdirectory named CS46B. What is the difference in the result of issuing the command
cp /etc/hosts CS46B
and
cp /etc/hosts CS46B/hosts

Question 7: Assume you are in your home directory. How would you remove (delete) the files hosts and testFile from your home directory?

Question 8: Assume you have a subdirectory called tempDir in your home directory. What must you remember to do before issuing the command
rmdir tempDir

Question 9: What do the letters in pwd represent?

Question 10: What command would you issue to change the name of a file from BuildList.c to buildList.c ?

Question 11: Assume you have a subdirectory named sharedFiles in your home directory. In that subdirectory you have a file named testData that you wish to share with other users. What is the command to set the appropriate permissions for the file testData ?