CSE 111, Fall 00, UNIX COMMANDS

CSE 111, Fall 2000

#### SOME USEFUL UNIX COMMANDS

Last Update: 30 August 2000

First, some terminology:

file = a "document" with writing (or images or ...) in it

directory = what Windows & Mac people call a "folder"; i.e., a collection of files.

Type this at the prompt: | in order to do this:
--- | ---
`cd` | `c`hange to your home `d`irectory
`cd` directory | `c`hange to the `d`irectory named directory
`ls` | `l`i`s`t all files and subdirectories in the current directory
`ls -F` | `l`i`s`t all files and subdirectories in the current directory but mark the subdirectories with a slash (/) so that you can tell the difference between them and the files
`pwd` | `p`rint the current (or "`w`orking") `d`irectory (so that you'll know where you are if you get lost changing directories)