I am fairly new to Linux and I need to find a way to show the contents of my Bash History via the command line, and unfortunately I can't seem to find anything that works, or that I can understand. I am using Linux Ubuntu 11.10, and when I open the Bash History manually by finding the file, it opens with something known as gedit. How will I be able to view the contents of my Bash History via the command line? Many Thanks! ~ShadedVeil
less is a pretty useful command evolved from
more. You can use it to browse through large text files. Run:
Use the Up/Down arrow keys to go up and down in the file. Press
q to exit.
For more information/keyboard shortcuts in
man less. It will show its manual pages.
For instance, you could also use other utilities, such as
more $HOME/.bash_history), nano (
nano $HOME/.bash_history) and Vim (