Bash Shell |
| Tuesday, 19 April 2005 17:57 |
|
Bourne 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 Shortcuts Ctrl + 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 |
| Last Updated on Sunday, 11 December 2011 23:34 |

