how can i check history of previous commands in terminal code example
Example: 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*"