Howto: Sync Bash History Between Terminals

Howto: Sync Bash History Between Terminals
Do you want to be able to use the history from another terminal quickly and simply in a new terminal, or to be able to use any one of the terminals on your desktops to continue working with a current history?

Me too :]

This is a very easy tweak and makes a lot of sense to most people. So we need to edit the file ~/.bashrc

Switch screen in nested session

Xterm.png

I am in love witch screen :)

The first thing I do when I connect to a machine is start a screen session so I have multiply terminal sessions that I can switch by just a simple key stroke (CTRL-a followd by ").

CTRL-a is the most important command. When CTRL-a is send to the screen session, screen will accept the next character as a command for screen itself.

Cheat sheet Screen

Xterm.png

Screen Home:
http://www.gnu.org/software/screen/

Basics:
-ctrl a c -> create new window
-ctrl a A -> set window name
-ctrl a w -> show all window
-ctrl a 1|2|3|... -> switch to window n
-ctrl a " -> choose window
-ctrl a ctrl a -> switch between window
-ctrl a d -> detach window
-ctrl a ? -> help