The historyhistory command of a linux command in one day is used to display the used commands and number them. Historyn displays n recent commands. Www.2cto. comhistory-c clears the history of the current shell. The history-d801 removes the... number 801...
The history command of a linux command in a day is used to display the commands that have been used and numbered them. History n displays n recent commands. Www.2cto.com history-c clears the history of the current shell. History-d 801: Delete a command numbered 801. History-a append the latest command to the history file. History-n indicates that no historical records have been read from history files. History-r uses the records in the history file as the history of the current shell. History-w writes the current record to the history file to overwrite the original content. -P Perform history substitution on the following args anddisplay the result on the standard output. does notstore the results in the history list. each arg must bequoted to disable normal history expansion. www.2cto.com-s Store the args in the history list as a single entry. the last command in the history list is removed beforethe args are added .!! Run the previous command .! N: execute the nth command .! Cd: run the latest command starting with cd .! There is no space at the end. Author: CrazyNemo
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