Tuesday, December 20, 2016

linux command line history

# history
presents you a list of historical command lines

# history n
lists the last n commands

# !546
executes(!) the command listed above at line 546

!string
executes(!) the last command starting with string

to start a search in the history press "CTRL+r" and type your search string
(reverse-i-search)`': [string]
press "CTRL+r" again to search in result

No comments:

Post a Comment