history
Display or manipulate the shell command history.
Syntax
$history [n]
Examples
Examples
$history
Examples
$history 20
Examples
$history | grep ssh
Examples
$history -c
Shortcuts
rm -f /Volumes/homes/sebastian/Projekte/linuxcommand/cache/commands_cache.json && python3 find_duplicates.py (last command)
nslookup mail.yampp.de (command number n)
Typical use cases
Note
Use !n to rerun entry n. History size is controlled by HISTSIZE and HISTFILE.
Export