Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


173 :: Bash History and Tab completion

<< First, < Previous, , Latest >>

Hosted by Dann on Tuesday, 2006-10-24 is flagged as Explicit and is released under a CC-BY-NC-SA license.
.

Listen in mp3 format. Play now:

Duration: 00:14:51

Listen in mp3 format.

general.

Bash History and Tab Completion

when you log in the first time bash reads:

  • /etc/profile
  • .profile (if exists in home dir)
  • .bash_profile (if exists in home dir)
non-login shells read:
  • .bashrc (if it exists)

If you want to increase your history size put this in your .bash_profile:

export HISTSIZE=1000
You may want to also put that in your .bashrc for subsequent shells from your login shell, because this value will not be set until you log out and back in again. You can also issue export HISTSIZE=1000 in the shell to increase this, but value will not be set for any other or subsequent shells started from your session.