CIS 210 Homework Assignment #6

Due: Wednesday, Apr 16, 2008 by 3PM

Name:
Email:

NOTE: To copy and paste in the Unix environment the following may be used:
  1. Create a new directory named unix_class in your home directory. Show the command you used to create the directory. (1pt)
  2. Within your new unix_class directory, copy all of the stats (files ending with ".stats") files in /mnt/data/logs into your unix_class directory. What command did you use to perform this function? (1pt)
  3. Rename one of the largest stats files you copied over as largest.stats. Show the exact command you used to do this. (1pt)
  4. Who is the owner of the file in #3? And to which group does it belong? (1pt)
  5. Create a subdirectory named smallstats under your unix_class directory. Move the stats files whose name ends with "3.stats" into this new subdirectory. Copy and paste the command you used to perform this function below. (2pts)
  6. Create a file called filename.txt in your home directory. Rename this file to filename2.txt. Copy and paste how you renamed this file. (2pts)
  7. Copy the file filename2.txt to your unix_class directory as copied.txt. Copy and paste the command you used. (1pt)
  8. What command would you use to remove the smallstats directory and all of its contents with one command? (1pt)

last updated: 16 Apr 2008 14:56