Ubuntu – How to access the Bash History?

11.10bashbash-historycommand line

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

Best Answer

$history

and it will show the history

 1999  exit
 2000  cd /opt
 2001  sudo apt-get install p7zip-full
 2002  sudo apt-get install p7zip-rar
 2003  mkdir CS-RT-code
 2004  cd CS-RT-code/
 2005  ls -lrt
 2006  history

$ !<history #> to execute the previous history command