Linux common commands (man Histroy)
1.linux Man Manual:
Usage:
# Man command query command Help
Eg:man ls
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5A/22/wKioL1T3yGuy-Q5IAAGgYSihLvY181.jpg "title=" man Ls.jpg "alt=" Wkiol1t3yguy-q5iaaggysihlvy181.jpg "/>
Man Manual Chapter
1 User Commands (Users command)
2 system Calls (Systems Call)
3 C Library Functions (libraries call)
4 Devices and special files (Devices and special documents)
5 Files Formats and conventions (file format and configuration file)
6 games et. Al. (game)
7 Miscellanea (Miscellaneous)
8 System Administration Tools and deamons (Management class commands)
Generate Whatis Query Library
# Makewhatis
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/5A/25/wKiom1T3x7ixEEcVAABYl4wC_KY458.jpg "title=" Makewhatis.jpg "alt=" Wkiom1t3x7ixeecvaabyl4wc_ky458.jpg "/>
Query command Help section
# Whatis COMMAND
# man 5 man.config
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5A/22/wKioL1T3yPyR_CG-AAKKgwelY0c749.jpg "title=" Whatis "alt=" Wkiol1t3ypyr_cg-aakkgwely0c749.jpg "/>
Manual shortcut key:
Q Key: Exit man Manual
B Key: Turn up one screen
SPACEBAR: Turn down one screen
D key: Flip down half screen (or ctrl+d)
U key: Flip up half screen (or ctrl+u)
G Key: Jump to end of file
1G: Skip to the top of the file
50g/ng: Jumps to the corresponding 50 or n rows
The man manual also supports the Find feature:
/keyword: From the current cursor line, to the end of the file lookup (keyword is the keyword to find)
Keyword: Starting at the current line of the cursor, looking at the top of the file
N Key: Next match in the same direction as the current find command
N Key: Previous match in the same direction as the current find command
2.history Command History view
#history
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/5A/22/wKioL1T3yUDAlBYtAADZ3X37wqc854.jpg "title=" History "alt=" Wkiol1t3yudalbytaadz3x37wqc854.jpg "/>
~/.bash_history Command History save File
echo $HISTFILE View the command history file
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/5A/22/wKioL1T3yYmjhOgMAABFeiKNbZs773.jpg "title=" Histfile "alt=" Wkiol1t3yymjhogmaabfeiknbzs773.jpg "/>
Common shortcut References for command history:
!n: Execution History of article N (!5 5th)
!-n: Execution history in the penultimate section
!: Executes the last command in the command history
!STR: The most recent command in the command history that starts with Str
Refers to the last string of a recent command
ESC--.
!$
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5A/25/wKiom1T3yJCRPPlxAADsJJ-iLo8666.jpg "title="!$.jpg "alt=" Wkiom1t3yjcrpplxaadsjj-ilo8666.jpg "/>
This article is from the "Cai Linux" blog, please be sure to keep this source http://mlybfq.blog.51cto.com/4904679/1617535
Linux common commands (man Histroy)