Top Banner
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

Linux Commands whoamilist the user name of the owner of the current login seesion wholist users currently logged in passwdchange password pwdprint working.

Jan 18, 2016

Download

Documents

Preston Goodman
Welcome message from author
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
Page 1: Linux Commands whoamilist the user name of the owner of the current login seesion wholist users currently logged in passwdchange password pwdprint working.

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

Page 2: Linux Commands whoamilist the user name of the owner of the current login seesion wholist users currently logged in passwdchange password pwdprint working.

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

Page 3: Linux Commands whoamilist the user name of the owner of the current login seesion wholist users currently logged in passwdchange password pwdprint working.

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

Page 4: Linux Commands whoamilist the user name of the owner of the current login seesion wholist users currently logged in passwdchange password pwdprint working.

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

Page 5: Linux Commands whoamilist the user name of the owner of the current login seesion wholist users currently logged in passwdchange password pwdprint working.

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

Page 6: Linux Commands whoamilist the user name of the owner of the current login seesion wholist users currently logged in passwdchange password pwdprint working.

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