UNIX and EMACS for 61A (snarfed[1] from Todd Segal et al)

Emacs

Emacs is the official text editor of 61A, as well as the editor you will use in most CS classes at Berkeley. In addition to the online help facilities of Emacs, a basic reference is included in the reader. Take some time to play with Emacs; the better you know Emacs, the less time you will spend on your homeworks, projects and labs fumbling around trying to open, close and edit files. Some important Emacs commands (most of them also are available form the drop-down menus):

Operation

Keyboard Shortcut

Open a file

Control-x Control-f

Save the current buffer

Control-x Control-s

Multiple undo

Control-x u

Quit

Control-x Control-c

Split screen horizontally

Control-x 2

Unsplit entire screen

Control-x 1

Remove one screen partition

Control–x 0

Run Scheme

Meta (or ESC)-s

Evaluate Scheme expression

Control–c Control–e

Unix

Unix (more specifically, Solaris) will be the official OS of 61A. You will need to know how to do basic housekeeping in the Unix environment: copy files, organize them into directories (folders) and remove files. Here's a few commands, with their DOS analogues:

DOS

UNIX

Description

dir

ls

List directory contents

cd

cd

Change directory

md

mkdir

Make a new directory

copy

cp

Copy file

move

mv

Move a file/change filename

type

cat/more

Show the contents of this text file

del

rm

Delete file

 

pwd

What directory am I in?

 

&

Run a program in the background (multitask): eg. “emacs &”

 

ssh

Secure Shell; used to login securely to another machine

 

sdiff

Show differences between two files

Feel free to explore Unix further on your own. If you want information on a specific Unix utility foo, type “man foo” at the shell to access the online manual page for it.  



[1] See footnote 31 on Page 399 of Structure and Interpretation of Computer Programs.