Example

  1. Connect to login.itd.umich.edu and move to 506/data
  2. See size of RECS data: du -h recs2015_public_v4.csv
  3. Use gzip to compress this data.
  4. How much smaller is the compressed version?
  5. Use a pipe to view the first two lines without fulling decompressing:
    • gunzip -cd recs2015_public_v4.csv.gz | head -2 | less -S
    • Note -d is redundant, gzip -d = gunzip
    • The -c option means send to standard out rather than to a new file.
  6. Use tar to create an archive of the entire 506 folder:
    • tar cvfz 506.tgz 506/
    • Make a new directory temp and move the tarball there.
  7. Unarchive 506.tgz into temp and note contents using tree.
  8. Remove temp and its contents after returning to the parent directory: rm -rf /temp/