Mostrar mensagens com a etiqueta bash. Mostrar todas as mensagens
Mostrar mensagens com a etiqueta bash. Mostrar todas as mensagens

quinta-feira, 29 de abril de 2010

linux :: bash :: removing duplicate files


find /dir/where/to/search -type f -print0 | xargs -0 -n1 md5sum | sort --key=1,32 | uniq -w 32 -d | awk {'print $2'} | while read a ; do rm $a ; done

sábado, 19 de dezembro de 2009

Bash::VI Search Style (K)Ubuntu

How to configure your Bash(konsole) to do a search VI style. On your bash:


~$ cd
~$ vi .inputrc

# Vim style history search
"\e[A": history-search-backward
"\e[B": history-search-forward
"\e[C": forward-char
"\e[D": backward-char
# normal style - commented, so they'll not be used
# "\e[A": previous-history
# "\e[B": next-history

quarta-feira, 9 de dezembro de 2009

SSH - Session Timeout

How to prevent SSH from session timeout (when you leave your connection idle for some time).
Just add this to ~.ssh/config:

# Preventing timeout de ligacao ssh
ServerAliveInterval 30
ServerAliveCountMax 6


source