1.6 Exercises

1.6.1 Basic Usage

See Section 12.0.1 for solutions.

  1. Execute the two commands echo "Hi" and echo "Alien!". Then, try to put both of your commands on a single line and still have both executed once you press return. Note: on a Mac, printin exclamation marks ‘!’ is not so easy. The easiest is to use single quotes (i.e. ‘Alien!’instead of“Alien!`”).

  2. The command date prints the current date to the command line. Print the date in RFC 5322 format. Check the help page of dateto figure out how to do this.