| logout | Log out of the server |
| Directories | |
| cd dir | Change current directory to dir |
| cd .. | Change current directory to the parent of the current directory |
| cd | Change current directory to your home directory (useful if you're lost) |
| mkdir dir | Make a new directory called dir |
| rmdir dir | Remove directory dir --- it must be empty! |
| pwd | Print working directory (show where you are) |
| Files | |
| ls | List all files in the current directory |
| ls dir | List all files in directory dir |
| ls -l | List all files in the current directory in long format (dates, permissions, etc.) |
| ls -l dir | |
| ls -la | List all files in the current directory, including hidden files, in long format |
| ls -la dir | |
| ls -R | List all files in the current directory, and all subdirectories |
| rm file | Remove (delete) file |
| cp file1 file2 | Copy file1 to file2 |
| mv file1 file2 | Move (rename) file1 to file2 |
| cp file dir | Copy file into directory dir |
| mv file dir | Move file into directory dir |
| Text Files | |
| more file | View the text in file |
| less file | Another way to view the text in file |
| nano | Start the nano text editor with a new, empty file |
| nano file | Start the nano text editor with file loaded (so you can edit it) |
| Permissions | |
| chmod 755 file | Lets the world view file, but only you can edit it. |
| chmod 700 file | Locks everyone besides you out of file; only you can read or edit it. |
For example, if you create a file called anotherpage.html, you should use the URL
http://people.umass.edu/pkirlin/anotherpage.html
to see it. Don't forget to change "pkirlin" to whatever your login name is.