Sometime a ssh session in terminal hangs, mostly after network issues or suspend mode of the laptop. To free this terminal from the ssh session you can just put ENTER and wait, after a while it will be recognized. Or you push ENTER TILDE DOT this will free your session immediately.
Use lolcat to get beautiful colorized terminal output or to prank colleagues it they let her workstation/laptop unattended.
apt install lolcat; alias cat="/usr/games/lolcat"
Record and share your terminal sessions.
asciinema [as-kee-nuh-muh] is a free and open source solution for recording terminal sessions and sharing them on the web. Read about how it works.
sshuttle
Ein Tool um sich Zugang zu einem lokalen Netz zu verschaffen ohne ein VPN einrichten zu müssen. Einzige Bedingungen sind python auf Host und Client Rechner und root Zugriff auf dem Client. sshuttle
Markiere Whitespace am Ende der Zeile
Folgendes zur ~/.vimrc hinzufügen
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@
Danach erscheinen...
Globbing Probleme
scp -r remoteinstance:/var/data/* ./
zsh: no matches found: remoteinstance:/var/data/*
Obwohl dort definitiv Dateien liegen. Folgende Zeile zur .zshrc hinzufügen
unsetopt nomatch
ipinfo.io stellt eine kostenlose (1000 Anfragen pro Tag) API zur Verfügung um Scriptbasiert den Standort einer IP Adresse abfragen zu können.
curl ipinfo.io/46.118.208.7
{
"ip": "46.118.208.7",
"hostname": "SOL-FTTB.7.208.118.46.sovam.net.ua",
"city": "",
"region": "",
"country": "UA",...
Byobu is an extension for screen or tmux which shows system information at the bottom border. It easy to install on Debian bases systems with:
apt-get install byobu
https://launchpad.net/byobu
Hier entsteht ein Vergleich zwischen tmux und screen.
Ein Terminal Multiplexer und die beste screen Alternative.
Kommandooptionen
tmux # start
tmux new -s name # startet neue Session mit "name"
tmux a # verbindet sich zu einer bestehenden Session
tmux a -t name # verbindet sich zu...
Wenn man Subversion auf dem Mac Terminal verwenden möchte und folgende Meldung erhält
svn: This client is too old to work with working copy '.'
dann braucht man wohl eine aktuellere Version als die von Apple gelieferte.
- Lade die passende Version von http://www.wandisco.com/subversion/download#...