How do i see the commands i have already ran from the shell prompt?
-
The bash shell and zsh have become more commonplace, these shells by default record the commands you have ran from your login/user account.
To display all the commands you have run, use the following command.
$ history
Display top 5 commands.
$ history| head -5 1 cd playbooks 2 vi hellworld.yml 3 source $ZSH/oh-my-zsh.sh 4 cat /etc/issue 5 cd ~
© Lightnetics 2024