1. Ls-a Show hidden file-l display rwd-h display size
2. RM Delete + file name Touch Create file mkdir Create folder
3. Wildcard: * Replace multiple? Replace a [123456] wildcard character, which is also a representation, but the limit is only the number
4. > redirect + file (delete and write) >> append (direct append)
5. Cat View File (one-time view) can view multiple files more (page) Q exit B go down F up
6. Ls-alh/bin | More | is a pipeline (redirects almost, and then executes the previous paragraph with the following statement)
7. Is Multiple Commands tab auto-complete CD. /.. Upper path CD-Back to last location CD ~ Home Directory
8. MV Source File New file (1. move file 2. File rename)
9. ln-s original file Soft link name no-S is hard link {Soft link to file name (two-dimensional pointer), hard link directly to the data in the file (one-dimensional pointer)} number of Hard links = 0, the file will be deleted
Cat 1.txt 2.txt > Xxx.txt directly merge two files find file name
grep "search content" is searched for the file "^jij" to see the beginning of the file must begin with Jij "123$" End of the
CP 1.txt 2.txt Copy file folder don't let it move.
: VI Editor: (only in the page that just went in)
D Remove W Jump one word
ll equals Ls-la display
Which is view the path of the command used WhoAmI view the current account
Cs+t terminal, open multiple windows
Application of Subline Editor:
Selection +tab key, indent
Shift+tab Key to indent backward
Ipython3 can be directly used on the command line, Python2 internal not allowed to have Chinese (#-x-coding:utf-8-*-) settings complete
14.1. Normal Packaging: TAR-CVF package name *.py (file to be hit) decompression: TAR–XVF Unpacking name
2. GZ uncompressed: TAR-ZCVF xxx.tar.gz *.py tar-zxvf xxx.tar.gz
3. TAR-JCVF yyy.tar.bz2 *.py tar-jxvf yyy.tar.bz2
4. zip zzz.zip *.py Unzip Zzz.zip
(-C Plus decompression path-D plus decompression path (Zip))
Cal-y >1.txt Date "+%y=====%m===%d" shows the month and day format behind this%Y year display 2-bit
16.ps process under current terminal-aux represents all Program Top task Manager Htop kill PID Kill Process Q is exit kill-9 9822 process Number (-9 is mandatory)
17.df–h View the hard disk usage at this time du–h the actual size of each path ifconfig view the network card ping IP address ifconfig | grep 172 put the contents of the ifconfig inside the pipe and search for 172 of the information
18.useradd shuaige–m How to determine the account: Cat etc/passwd last su shuaige switch to shuaige this account sudo passwd shuaige set password
19. Multi-user
SSH [email protected] Telnet
sudo passwd shuaige Change Password
Userdel Shuaige Delete Account
sudo userdel–r Gebilaowang together with folder delete
Sudo
-is normal file D is folder gives permissions to modify file permissions chmod u=x 2.py Ugo three Group rwx 421 7 is limit chmod 137 2.py
20. Note the operation of the folder, 1.sudo 2.-r depth traversal
Linux basic commands