ubuntu command history

Shell
cat ~/.bash_history
less ~/.bash_history

# Or use builtin history
history

Source

Also in Shell: