1.6 Exercises
1.6.1 Basic Usage
See Section 12.0.1 for solutions.
Execute the two commands
echo "Hi"
andecho "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!`”).The command
date
prints the current date to the command line. Print the date in RFC 5322 format. Check the help page ofdate
to figure out how to do this.