history command in Linux/Unix.
-c Clear the history list by deleting all the entries.
-d offset Delete the history entry at position offset.
-a Append the ``new'' history lines (history lines entered since the beginning of the current bash session) to the history file.
-n Read the history lines not already read from the history file into the current history list. These are lines appended to the history file since the beginning of the current bash session.
-r Read the contents of the history file and use them as the current history.
-w Write the current history to the history file, overwriting the history file's contents.
-p Perform history substitution on the following args and display the result on the standard output. Does not store the results in the history list. Each arg must be quoted to disable normal history expansion.
-s Store the args in the history list as a single entry. The last command in the history list is removed before the args are added.
Watch video Linux Command Line Tutorial | history command | Remember Commands Like Pro | FOTV online without registration, duration hours minute second in high quality. This video was added by user Dilkush 09 May 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,51 once and liked it 3 people.