12 mag 2009

How to change the size of the history in Linux



Go to your home folder and open with a text editor (I will use vim) the .profile or the .bashrc_profile file.

# Go to your home folder, that is /home/username
cd ~ 
# Now edit your profile. 
# You can edit the file 
# .bashrc_profile if you prefer
vim .profile

Add the following line to your file, then save it and close it:

HISTSIZE=1000

Finally, type in your terminal:

source .profile

Now your history is set to 1000!
You can print the value in order to be sure:

# Print the file of the history
echo $HISTFILE
# Print the size of the history
echo $HISTSIZE

Tags: ,

Leave a Reply

Message:

  • Ricerca

    or
  • Language

  • Categorie

  • Delicious

  • Statistiche


    Warning: Illegal string offset 'timestamp' in /home/mhd-01/www.micheledallatorre.it/htdocs/blog/wp-content/plugins/firestats/firestats-wordpress.php on line 1081

    Warning: Illegal string offset 'timestamp' in /home/mhd-01/www.micheledallatorre.it/htdocs/blog/wp-content/plugins/firestats/firestats-wordpress.php on line 1081

    Warning: Illegal string offset 'timestamp' in /home/mhd-01/www.micheledallatorre.it/htdocs/blog/wp-content/plugins/firestats/firestats-wordpress.php on line 1081

    Warning: Illegal string offset 'timestamp' in /home/mhd-01/www.micheledallatorre.it/htdocs/blog/wp-content/plugins/firestats/firestats-wordpress.php on line 1081
    • Pages displayed : 33362
    • Unique visitors : 18465
    • Pages displayed in last 24 hours : 0
    • Unique visitors in last 24 hours : 0