Example +
- Connect to
login.itd.umich.edu
and move to 506/data
- See size of RECS data:
du -h recs2015_public_v4.csv
- Use
gzip
to compress this data.
- How much smaller is the compressed version?
- 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.
- 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.
- Un-archive
506.tgz
into temp and note contents using tree
.
- Remove
temp
and its contents after returning to the parent directory: rm -rf /temp/