Linux common commands (man Histroy)

Source: Internet
Author: User
Tags save file

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.