Working with Unix#

Self-Help#

Exercise 5

  1. Use man to look up the flag for human-readable output from ls.

  2. Get help with man by typing man man into the console.

  3. Wouldn’t it be nice if there was a calendar command? Use apropos to look for such a command, then use man to read about how that command works.

Get Wild#

Exercise 6

  1. Before I organized the photos by year, what command would have listed all of the photos of type .png?

  2. Before I organized the photos by year, what command would have deleted all of my hiking photos?

  3. What series of commands would you use in order to put my figures for a data science course and the pictures I took in the lab into their own folders?

Pipes#

Exercise 8

  1. Use pipes to figure out how many US states contain the word “New.”

  2. Examine your ~/.bash_history to try to figure out how many unique commands you’ve ever used. (You may need to look up how to use the uniq and sort commands).