1./bin/command: Allusers2.cdShell internal command, not in any directory cd-back to the last accessed directory cd! $ Enter the last accessed directory cd ~ And cd are back home directory 3.pwd: printworkdirectory4.cp:/bin/cpcp-...
1./bin/command: All users
2. cd Shell internal commands, not in any Directory
Cd-return to the last accessed Directory
Cd! $ Enter the last accessed Directory
Cd ~ And cd are both home directories
3. pwd: print work directory
4. cp:/bin/cp
Cp-a copy Directory (including subdirectories)
5. view the file content
Cat reads all content at a time
More cannot be rolled back. q exits.
Less can be rolled back (flip key or direction key)
Head-n filename n indicates the number of rows. the default value is the first 10.
The default value of tail-n filename is the last 10 rows.
Tail-f filename: view real-time files, such as log files and the last line of real-time monitoring files
6. create a deep-level Directory using mkdir-p
7. view the absolute path of the command and command Help Manual
Whatis command_name
8. find [search path] [keyword] [file or directory]
Locate filename is faster (updatedb re-creates a directory database index)
Grep contents_keywords filename
Grep-v "#"/etc/httpd/conf/httpd. conf> http. conf. bak (comment out files, "-v" is excluded)
9. gzip GNU zip
Gzip-1 quick compression
Gzip-9 compression with high compression ratio
*. Gz suffix
Decompress gunzip
Tar packaging and compression
Tar-cvf file_newname dir_name
Tar-zcvf mydir.tar.gz mydir/
Decompress tar-zxvf file.gz
Tar-jxvf file.bz2
10. time settings
Set date-s 20100315 first
Set the date-s.
If you want to change the BIOS time at the same time, execute clock-w
Author: "xiao K Studio"