Get the pid of dd
$ pgrep -l '^dd$'
Send signal to dd to show progress
$ watch -n 10 sudo kill -USR1 pid
Filtrar mensagens no log do ambiente antigo drop2
$ norm_bg=$(tput sgr0); blue_bg=$(tput setab 2); red_bg=$(tput setab 1); x=0; while read line; do x=$((1-x)); if [ $x -eq 1 ]; then echo -e "********************************************************************************************************************"; fi; echo $line; done < <(cat -A IBSBMQServices_20150824_00004.log | grep WNOPSVCHG | grep -o " DATA.*APPDEP2.*)") | sed "s/\^I/$red_bg>--$norm_bg/g" | sed "s/\ /$blue_bg\_$norm_bg/g"
#habilitar sudo para interface grafica, kdesu usar sudo ao inves de su
$ kwriteconfig --file kdesurc --group super-user-command --key super-user-command sudo
#buscar pacote uuid instalado
$ rpm -qa | grep uuid
#listar arquivos do pacote
$ rpm -ql libuuid-devel-2.17.2-12.18.0.1.el6.x86_64
Descobrir MAC Address
$ sudo arping -I em1 192.168.80.11
# mac da maquina instaladores = 68:B5:99:00:E3:20
Ligar maquina com Wake on lan
$ sudo ether-wake -i em1 68:B5:99:00:E3:20
# grep ignorando diretorio .git e arquivos.c
$ grep -r 192.168.33.58 --exclude-dir=.git --exclude=*.c ./
# repassando cor no Less
$ grep --color=always -r meuipdeteste --exclude=ULOG.* . | less -R
No comments:
Post a Comment