From Schmid.wiki
(Redirected from Bash)
Jump to: navigation, search

Hotkeys

C-x,C-e   edit in $EDITOR and execute
C-r       search backwards in history
C-p/C-n   browse history

Invocation

Bash shells start in one of two modes:

  • login shell
       this executes ~/.bash_profile
  • non-login shell
       this executes ~/.bashrc

A remote login system like ssh uses bash_profile A non-interactive session like scp uses bashrc

My configuration has bashrc as a subset of bash_profile, using these lines in bash_profile:

# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
    source ~/.bashrc
fi

References

Pages in category "Bash"

The following 6 pages are in this category, out of 6 total.