Exercise: File content

  1. grep through /etc/password showing the line of your username
  2. Then show the shell of every user in the system.
  3. Count how many times each shell is used.
  4. Count how many users are in the system.
  5. Archive the content of your home directory in a tar.gz and then also ina tar.bz2 file.
  6. How do they compare in size to each other and to the real content of your home directory?
  7. Find your name in the zipped file without opening it to the disk.
  8. Open the whole directory tree in /tmp.
  9. Remove a file from that new tree and compare it to original directory tree.