Tuesday, 19 April 2005 17:57Bourne again shell is my favorite shell.
The best place to find simple information about it can be found on the man pages.
A good place for programming info.
revans's bash-it at master - GitHub - A community bash framework in the spirit of oh-my-zsh
Tuesday's Tips for Unix Shell Scripts
kristopolous/TickTick - GitHub - JSON in your Bash scripts
HistoryFor privacy you can turn off history:
Simply add the following to your (~/.bash_logout)
history -c clear
This will cause bash to automatically clear your history on logout.
You can turn off history all together by setting:
HISTSIZE=0 HISTFILE="/dev/null" SAVEHIST=0 export HISTSIZE HISTFILE SAVEHISTThis will cause bash to not record any history at all. However, if you use just the .bash_logout you can continue to use history for the current session.
Keyboard ShortcutsCtrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + L Clears the Screen, similar to the clear command
Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
Ctrl + H Same as backspace
Ctrl + R Let's you search through previously used commands
Ctrl + C Kill whatever you are running
Ctrl + D Exit the current shell
Ctrl + Z Puts whatever you are running into a suspended background process. fg restores it.
Ctrl + W Delete the word before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + T Swap the last two characters before the cursor
Esc + T Swap the last two words before the cursor
Alt + F Move cursor forward one word on the current line
Alt + B Move cursor backward one word on the current line
Tab Auto-complete files and folder names
Bash Tricks | The Red45 - Because bash was written and is maintained by the people who write emacs, emacs is the default mode used by bash. If the vi mode is desired then add the following command to your .bashrc file: set -o vi Otherwise, heres the emacs shortcuts.
Sending signals with the keyboard | The Red45 - CTRL+\, unlike the other kill signals is a Core disposition signal, this maens that it will instruct the controlling process to terminate and dump core.
Extract substring in bash || cut data up in bashshell - Extract substring in bash - Stack Overflow
cxreg/smartcd - change your environment as you cd around your filesystem.
Last Updated on Monday, 30 June 2014 16:07