Uwes Blog

Projects, thoughts and more

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

keymapping
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

startup

keymapping
-S [name]start session with [name]
-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.

command
git clean -f -d remove all untracked files and directories
git log --oneline --graph --color --all --decorate nice commandline commit graph