Uwes Blog


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.

tmux

keymapping
ctrl+b ccreate a new windows
ctrl+b pswitch to previous windows
ctrl+b nswitch to next window windows
ctrl+b 0-9switch to windows n
ctrl+b ddeatch session
ctrl+b wchoose from list
ctrl+b ,rename window
ctrl+b %split horizontal
ctrl+b "split vertical
ctrl+b ogoto next
ctrl+b ;toogle current/previous
ctrl+b xclose
ctrl+b [history mode
command
tmux new -s session_namecreate a named session
tmux lslist sessions
tmux attach-session -t session_nameattach to session

minicom

parameter
--device /dev/cu.tty<xxx>serial device e.g /dev/cu.ttyUSB0
--baudrate 9600
--capturefile=<FILE>capture to file

git/github

command
git status --ignoredshow ignored files too
git clean -f -dremove all untracked files and directories
git log --oneline --graph --color --all --decoratenice commandline commit graph
git remote -vshow remotes
git remote add upstream remoteurladd additional remote
git fetch upstreamfetch the upstream changes (repo forked from)
git merge upstream/mastermerge the upstream changes (repo forked from)

WOL

wakeonlan -i 192.168.20.255 AC:87:A3:19:BF:D9