linux history code example
Example 1: linux history with time
HISTTIMEFORMAT="%d/%m/%y %T "
history
Example 2: ubuntu command history
cat ~/.bash_history
less ~/.bash_history
history
Example 3: find old command terminal
history | grep "foo*"
Example 4: histroy of commands
Highly recommended command to use in terminal for reviewing commands and
reuse some of them. Just execute in terminal:
history
Also recommended to use together with grep for filtering a specific used command
history | grep "foo*"
Example 5: history command linux
Highly recommended command to use in terminal for reviewing commands and reuse
some of them. Just execute in terminal:
history
Also recommended to use together with grep for filtering a specific used command
history | grep "foo*"
Example 6: linux history command
Just check the enumeration of your commands history and then delete them:
history -d 7