2012-06-05 12:24:42 +08:00
|
|
|
\section history history - Show and manipulate user's command history
|
|
|
|
|
|
|
|
\subsection history-synopsis Synopsis
|
|
|
|
<pre>
|
|
|
|
history (--save | --clear)
|
2012-06-12 16:47:25 +08:00
|
|
|
history (--search | --delete ) (--prefix "prefix string" | --contains "search string")
|
2012-06-05 12:24:42 +08:00
|
|
|
</pre>
|
|
|
|
|
|
|
|
\subsection history-description Description
|
|
|
|
|
2012-06-12 16:47:25 +08:00
|
|
|
history is used to list, search and delete user's command history
|
2012-06-05 12:24:42 +08:00
|
|
|
|
|
|
|
\subsection history-examples Example
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
history --save
|
2012-06-12 16:47:25 +08:00
|
|
|
Save all changes in history file
|
2012-06-05 12:24:42 +08:00
|
|
|
|
|
|
|
history --clear
|
2012-06-12 16:47:25 +08:00
|
|
|
Delete all history items
|
2012-06-05 12:24:42 +08:00
|
|
|
|
|
|
|
history --search --contains "foo"
|
2012-06-12 16:47:25 +08:00
|
|
|
Searches commands containing "foo" string
|
2012-06-05 12:24:42 +08:00
|
|
|
|
|
|
|
history --search --prefix "foo"
|
2012-06-12 16:47:25 +08:00
|
|
|
Searches for commands with prefix "foo"
|
2012-06-05 12:24:42 +08:00
|
|
|
|
|
|
|
history --delete --contains "foo"
|
2012-06-12 16:47:25 +08:00
|
|
|
Interactively delete commands containing string "foo"
|
2012-06-05 12:24:42 +08:00
|
|
|
|
|
|
|
history --delete --prefix "foo"
|
2012-06-12 16:47:25 +08:00
|
|
|
Interactively delete commands with prefix "foo"
|
2012-06-05 12:24:42 +08:00
|
|
|
|
|
|
|
history --delete "foo"
|
2012-06-12 16:47:25 +08:00
|
|
|
Delete command "foo" from history
|
2012-06-11 19:46:47 +08:00
|
|
|
</pre>
|