Dave Horner's Website - Yet another perspective on things...
49 guests
Rough Hits : 4627249

### More from me...

how did u find my site?

morning or night person?

Science is the organized skepticism in the reliability of expert opinion.
— Richard Feynman
\begin{bmatrix} 1 & 0 & \ldots & 0 \\ 0 & 1 & 0 & \vdots \\ \vdots & 0 & \ddots & 0\\ 0 & \ldots & 0 & 1_{n} \end{bmatrix}

# 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

## History

For privacy you can turn off history:

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 SAVEHIST
This 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
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 bash

shell - Extract substring in bash - Stack Overflow

shuf -n1 /usr/share/dict/words | sed 's/[^a-z]*//g'

find . -name "*.png" -exec ls -1lh {} \; |  awk '{print $5,$9}' | sort -rh