Upload
preston-goodman
View
215
Download
0
Tags:
Embed Size (px)
Citation preview
Linux Commands• whoami list the user name of the owner of the current login seesion
• who list users currently logged in
• passwd change password
• pwd print working directory
• mkdir make directory
• cd change to a different directory
• ls list files and directories
• cat display a file
• cp file1 file2 copy file1 and call it file2
• mv file1 file2 move or rename file1 to file2
• rm remove a file
• write send a message to another user
• echo write arguments to standard output
Vim Commands
Change mode from one to another
• a/A/i/I/o/O from command mode to insert mode
• Esc(escape key) from insert mode to command mode
Vim Commands in the insert mode
Text Entry Commands
• a Append text following current cursor position
• A Append text to the end of current line
• i Insert text before the current cursor position
• I Insert text at the beginning of the cursor line
• o Open up a new line following the current line and add text there
• O Open up a new line in front of the current line and add text there
Vim Commands in the command Mode
Exit Commands
• :q quit vim. This fails when changes have been made
• :q! quit without writing
• :wq write the current file and quit
• :wq! write the current file and quit always
Vim Commands in the command Mode
Cursor Movement Commands
• h Moves the cursor one character to the left
• l Moves the cursor one character to the right
• k Moves the cursor up one line
• j Moves the cursor down one line
Python Keywords
And exec Not
Assert finally or
Break for pass
Class from print
Continue global raise
def if return
del import try
elif in while
else is with
except lambda yield