Commandline Quick Tips

Here is a collection of Commandline Quick Tips, i use often. It will be supplemented, every time i find a new Tip. Normally this tips work flawless on Linux and Mac OS X.

screen keyboard commands

running session

ctrl+a ddetach from screen session
ctrl+a nnext screen
ctrl+a pprevious screen
ctrl+a ccreate screen
ctrl+a "list screens
ctrl+a iinfo
ctrl+a kkill
ctrl+a Arename
ctrl+a ESCactivate scroll back buffer


-S [name]start session with [name]
-Lcreate Log
-listlist all sessions
-r [name]reattach session [name]
-D -r [name]reattach session [name] after connection lost
-D -r [name]reattach session [name] after connection lost
/dev/cu.serial [speed]attach to serial port

git commands

often i use Tower on my Mac for all kinds of git stuff. But some things are faster to do on the commandline, or need to be automated i.e. inside Makefiles.

git clean -f -dremove all untracked files and directories
git log --oneline --graph --color --all --decoratenice commandline commit graph