Gentoo:/root/.bash history

From Gentoo Linux Wiki

Jump to: navigation, search
This file is part of the Gentoo Structure index.
Parent Directory Related Links

[edit] About

Log of previous command lines. Typically updated when you log out.

Tip: You can add code to Gentoo:/etc/skel/.bash_profile to increase the amount of lines stored. Or decrease it to improve security.
File: .bash_profile

HISTFILESIZE=100000000

HISTSIZE=1000000

where HISTFILESIZE is the max file size of your command line history and HISTSIZE is the max number of lines in your command line history. (note that after a couple years if bash seems to be slow loading you might want to consider trimming this file a bit...)


Tip: You can use Ctrl-r at the command line to search through your previous commands.

[edit] Links

Personal tools