"hello world"
article in Tech linux-unix-and-friends

Bash Shell

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:
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 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


cxreg/smartcd - change your environment as you cd around your filesystem.


Get a random word using shuf and sed.
shuf -n1 /usr/share/dict/words | sed 's/[^a-z]*//g'


get a list of all the pngs in the current folder sorted by filesize.
find . -name "*.png" -exec ls -1lh {} \; |  awk '{print $5, $9}' | sort -rh
Created: 2005-04-19 22:57:20 Modified: 2017-11-15 04:51:46
/root sections/
>peach custard pie
>linux
>windows
>programming
>random tech
>science
>research


moon and stars



My brain

Visible Dave Project


\begin{bmatrix} 1 & 0 & \ldots & 0 \\ 0 & 1 & 0 & \vdots \\ \vdots & 0 & \ddots & 0\\ 0 & \ldots & 0 & 1_{n} \end{bmatrix}