Saturday, October 25, 2008

Blog 8 -- Page 400 Self Test 3

Blog 8 – Chapter 7 – Page 400 Self Test 3

1) What command would you enter to move the file “eakins” which is in your current directory, so that it’s listed in your home directory?
A. mv eakins /home/mpoulton.

2) What is the difference between the commands rmdir and rm –r?
A. rmdir only removes an empty directory where as rm –r removes a directory and everything in the directory.

3) Assume you are the Projects directory, which has the subdirectories Old-projects and New-projects. What is the command to move the Book-project directory from New-projects to Old-projects?
A. Use mv New-projects/Book-project/ Old-projects. The Book-project directory moves from the New-projects to the Old-projects, files and all.

4) You are in your home directory, where there is a file named users_on. What command will list the file in both your home directory and in the subdirectory Projects?
A. Use ln users_on Projects. This will place a link in the Projects directory that is just like the file in the home directory.

No comments: