Linux Commands whoami list the user name of

  • Slides: 6
Download presentation
Linux Commands • whoami list the user name of the owner of the current

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 file 1 file 2 copy file 1 and call it file 2 • mv file 1 file 2 move or rename file 1 to file 2 • 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

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

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

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

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

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