Space and Archives

What's filling the disk, one folder in two places, and many files as one.

Updated

Disk Space

  1. What's Filling My Disk? du and df (Apprentice): du shows how much disk space each file and folder takes, sort -h puts those sizes in order with the biggest first, and df shows how much room is left on the drive.

Links

  1. Shortcuts to Files: ln -s (Apprentice): ln -s makes a symbolic link, a short name that points to a file or folder somewhere else, and the link works until the real thing moves or is deleted.

Archives

  1. Many Files as One: tar and zip (Apprentice): An archive packs a whole folder into one file you can send, back up or download; tar -czf makes a .tar.gz, tar -tzf lists one, tar -xzf unpacks it, and zip makes the .zip files any computer opens.

Exercise: Pack for the Trip

  1. Exercise: Pack for the Trip (Apprentice): Get a trip folder ready to go by finding what takes the space with du and df, giving a deep folder a short name with ln -s, packing archives with tar and zip, and opening one a friend sent, while a check script tells you which parts are done.