Type in your CS login account name (not sunlab login account):
Type in your preferred email address:
Enter Lab Section Section_11 Section_12
Question 1: If you forget your password, can you use the passwd command to change your password?
passwd
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?
-F
ls
Question 5: What is the result of issuing the command cd /
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
CS46B
cp /etc/hosts CS46B
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?
hosts
testFile
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
tempDir
rmdir tempDir
Question 9: What do the letters in pwd represent?
pwd
Question 10: What command would you issue to change the name of a file from BuildList.c to buildList.c ?
BuildList.c
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 ?
sharedFiles
testData