CIS 2101 Homework Assignment #14

Due: Teusday, Nov 15, 2011 by noon

Name:
Email:

NOTE: To copy and paste in the Unix environment the following may be used:
  1. What command would you use to print a file named "swirl.ps" to the printer asac315?(1pt)

  2. What commands (in one sequence)would you use to print the usernames of the last 8 users to log into your machine on the printer asac315?(2pts)

  3. Copy the file /mnt/homes/CLASSES/MET489/lab13/raw.data into your home directory. Use the bzip2 command to compress the file raw.data. What is the file size before and after the compression? Decompress the file once you have completed this question.(2pts)
  4. Use the gzip command to compress the file raw.data used in the previous question. What is the file size (Kilobytes) before and after the compression? (2pts)
  5. Create a tar archive of the directory /mnt/homes/CLASSES/MET489/lab13 and place the tar archive in your home directory with the filename lab13.tar. Show the command you used and the output of a long listing of the newly created archive file. Do not delete this file when you're done with this question. (2pts)
  6. From the long listing of the tar archive, determine its size. Compress it using gzip and note the new size. Uncompress the archive, but do not delete it. Enter before and after sizes and the commands that were used for all operations. (2pts)
  7. Show a long listing of the contents of this directory: /mnt/homes/CLASSES/MET489/lab13/ (1pt)
  8. Show a long listing of the contents of the tar archive that you just created, and the command you used to display the contents: (2pt)

Be sure to print out a copy of your answers when completed.

last updated: 08 Nov 2011 14:42