history | tail -1Or just up-arrow
Computer Tips - Linux: See the last bash command I did
Date: 2014sep3
OS: Linux
Product: bash
Q. Linux: See the last bash command I did
A. With this:
history | tail -1Or just up-arrow