Viewing Your History and More

By default, the previous 1000 commands you have run are saved in your /home directory in a file called .bash_history. You can edit this file. You can delete this file.

You can change the number of commands saved in your history by editing this line in the .bashrc file in your /home directory to whatever number you want:

HISTSIZE=1000

Get Ubuntu Unleashed 2015 Edition: Covering 14.10 and 15.04, Tenth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.