Difference between revisions of "Command Line Crib Sheet"

From LMU BioDB 2013
Jump to: navigation, search
(Start writing up reference-style “crib sheet.”)
 
(A few more commands, plus add a “short form” column.)
Line 2: Line 2:
  
 
{|
 
{|
 +
| '''/'''
 +
| 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'''
 
| '''Ctrl-C'''
 +
|
 
| “Panic” key—bail out of the current program and jump back to the command line
 
| “Panic” key—bail out of the current program and jump back to the command line
 
|-
 
|-
 
| '''Ctrl-D'''
 
| '''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)
 
| “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
 
| '''left'''/'''right''' arrow keys
 +
|
 
| Go backward/forward across current command (allowing you to edit it)
 
| 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
 
| '''Tab''' key
| Autocomplete
+
| autocomplete
 +
| Lists possible matching choices if there is more than one, or autofills immediately if there is only one match
 
|-
 
|-
 
| '''up'''/'''down''' arrow keys
 
| '''up'''/'''down''' arrow keys
 +
|
 
| Go back and forth through command history
 
| Go back and forth through command history
 
|}
 
|}

Revision as of 20:32, 14 September 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
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox