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
6
Embed
Linux Commands whoamilist the user name of the owner of the current login seesion wholist users currently logged in passwdchange password pwdprint working.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
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