~
Abbreviation of the current user directory
Cd ~
CD/home/<user-Name>/
-- Help
Get help
Vi -- Help
Tab
Auto-completion. Double-click the tab to display the completion prompt.
If the current command is unambiguous, it is complete. If there is any ambiguity, double-click to list the prompt options.
CD/E [Tab], complete with CD/etc/
CD/B [tab-Tab], listing options bin/boot/
------------------------------------------------------------
Ls
Directory List. Similar to Dir
PWD
Display current working directory
Cat
View files
Cat 01.txt
Cat 01.txt> 02.txt is added to the end of 02.txt
PS
Process List
-E, all processes
-F, complete extra full process information
PS-Ef | grep [Key]: filter process information containing the key
Kill
Close Process
VI
Text Editor
Command mode and input mode, which are in command mode by default. In input mode, ESC returns to command mode.
Command
I, insert before the cursor
A. Insert the cursor
O, Insert a new row
R, replace the current character
X, after deleting the cursor
CTRL + u: delete text entered in input mode
: W, save the current document
: Q. Exit VI.
VI 01.txt
: WQ! Force Execution
Sudo
Improve the command running permission. Applicable to All commands
Sudo VI/etc/hosts
Chmod
Modify the access permission of a file or directory.
Nohup background running process. Nohup [command] &
Nohup Java-jar importdata. Jar &
DF
The remaining disk space. -M is measured in MB.
Du
Used disk space. -A: All subdirectories;-C: returns the statistical value.
----------------------
Linux environment variable Summary
Http://blog.csdn.net/ddviplinux/archive/2009/06/18/4280433.aspx
Export java_home/home/My/JDK/
Export environment variables. This logon is valid.