List and run last used commands in Linux

To list through most recently used commands one by one use Arrow-Up key

To display all used commands:
history

To run a command from the history list:
!391
where 391 command number


Newsletter

Subscribe to receive occasional updates on new posts.
Your email will not be used for any other purpose and you can unsubscribe at any time.
Please wait