Disclaimer: I do not have a Mac. I have only run through this once, in the
hall, after class, and am working from memory a day later, so there may be
some small errors. Let me know, and I will fix them! -ce
- To open a terminal window on the Mac, look in your utilities folder
and scroll down to the icon that says "Terminal"
- Opening several terminal windows while you are working might help, and
certainly will not hurt.
- Terminal windows on the Mac seem to be unix shells, which means that
most unix commands work there. You might want to use the following unix
commands:
- pwd [print working directory - tells you where you are in your file
system tree]
- mkdir [make a subdirectory, such as "mkdir 250" would make a
subdirectory call 250]
- cd [change directory, as in "cd 250" would change to your subdirectory
called 250. "cd .." goes back up one directory. Use pwd if you forget where
you are.
- ls [gives a listing of the files in the current directory]
- mv [allows you to rename a file, so "mv animal.lisp.txt animal.lisp"
will rename animal.lisp.txt to animal.lisp
- Look up "unix shell commands" under google and you'll find lots of
things you might be able to do in your terminal window! E.g. see:
Shell commands
- When you open a new terminal window, it seems to put you, by default in
a subdirectory of /users/ followed by the name of your account. So you might
be, e.g., by default, in /users/smith. Use "pwd" to find out where you are. Then,
I recommend creating a subdirectory called 250, and putting your files in
there. Or, better yet, create 250, then create another subdirectory of THAT
directory called "lisp". Use pwd, mkdir, and cd, to do this.
- Put all your lisp development files in your subdirectory. Use "ls" to
make sure the files are where you expect them to be.
- Download the abcl.n.n.jar file by selecting it from the web link. If it
gets downloaded to your "downloads" directory, use copy and paste to copy it
to your 250 subdirectory.
- Download the "animal.lisp" example program by selecting it on the
web. Then under the "file" tab, use "save as" and then work down from your
hard drive to the users folder, to your 250 folder (and maybe your lisp
folder) and save the file there. Unfortunately it might name the file
"animal.lisp.txt" so you will have to rename it using the "mv" unix command
in your terminal window.
- Keep in mind that wherever you are working, just as on the PC, you will
need a copy of the abcl.n.n.jar file, and you lisp files in THAT directory.
- from this point on, most everything is the same between Mac terminal
windows and Windows CMD windows.