While once can directly view the last entered commands by pressing Up/Down arrow keys, IBM AIX does not support this.
There is, however, a quirky solution to this. One can type
'r' to run the immediately previous command.
$ r #runs the immediately previous command
Other options include
$ r -1 # to display the second last command
$ r -2 # to display the third last command
..and so on.
Additionally, we can view all the recently entered commands by just entering history command as below:
$ history #displays all the previously entered commands
If you wish to know how to tweak the history command to customize the number of commands it stores, you can click here.
Published on December 07, 2015 02:36