>
>>
<
|
Some Exercises
who
who > junk
date > junkYour shell (bash) will probably not let you do it because it won't let you ``accidentally'' clobber the existing file. You would first have to remove the file junk and then reexecute the command (but don't do it now).
ls >> junkIf you look at the file you should see both the output from the who command and the output from the ls command.
cat > garbageYou will now be able to type anything into this file that you want to. Throw some text in there just for the sake of example. When you have a couple lines, press control-d at the beginning of a new line to close the file and to stop entering text. (This is a really quick way to create a small file.)
cat junk garbage > bothIf you look at the file both you should see that it has both the contents of junk and garbage.
zmail userid < bothNote that userid is your RCS userid (or login). Someday I may ask you to mail me a file as a way of submitting your work. This is the way you would do it (of course, you'd replace your address with mine).
cat ~escobj/public/greek
cat ~escobj/public/greek | sort
&, you can have control
over both the UNIX window and the emacs window. You can add the
& to the end of any command to run it in the background.
& after it) and now you want to
run it in the background so that you can control the UNIX window. The
first thing you have to do is to suspend the job. Go
to the UNIX window and press control-z in it.
(Note : You can't suspend a program that is not running in
the foreground with the control-z keys.) You should get
a brief message that says ``Suspended'' or ``Stopped''. You have temporarily
suspended the job (in this case, the emacs job).