Command Line Crib Sheet
From LMU BioDB 2013
By popular demand, based on your week 3 shared journal feedback, here is a reference-style listing of the commands we have seen so far.
| / | forward slash | Separates successive folders in a cd command |
| ~, ~username | tilde | Shortcut for a user’s home folder; when immediately followed by a username (no spaces), this represents that user’s home folder |
| cd <directory or folder> | change directory | Changes the current directory/folder to the one indicated in the command |
| Ctrl-C | “Panic” key—bail out of the current program and jump back to the command line | |
| Ctrl-D | “End input” key—ends a program when using it in “practice” mode (where you type the data that you want it to manipulate) | |
| exit | exit | Log out of your command line session. |
| left/right arrow keys | Go backward/forward across current command (allowing you to edit it) | |
| logout | logout | Log out of your command line session. |
| pwd | print working directory | Displays the directory/folder in which you are working; the command prompt also shows this |
| Tab key | autocomplete | Lists possible matching choices if there is more than one, or autofills immediately if there is only one match |
| up/down arrow keys | Go back and forth through command history |