Terminal exercises:

Part I

  1. mkdir first
  2. cd first
  3. touch person.txt
  4. mv person.txt another.txt
  5. cp another.text copy.txt
  6. rm copy.txt
  7. copy -r first second
  8. rm -r second

Part II

  1. Man describes the command and the options it takes. Space bar scrolls through the man page.
  2. l flag lists files in the long format. a flag includes names that begin with a . (Hidden files).
  3. ctrl + A
  4. ctrl + E
  5. ctrl + A
  6. ctrl + W
  7. Terminal is the program you use to access the shell (bash, zsh, fish, etc. . .)
  8. Absolute path describes the location to a file from the root directory.
  9. Relative path describes the location of a file relative to your current working directory.
  10. A flag adds additional options to the cmd. I have used -l, -a and -r.
  11. -r recursively scans the directory looking for files to remove and -f forces a delete of any file found.