dl files from url with wget
#dl tout les tar.gz d'une page
wget -A tar.gz -r -l 1 -nd
#dl un fichier
curl -O PATH
cat *.gz | tar -xf - -i > /dev/null
ls -ltr
date +%Y-%m-%d-%H-%M
for x in echo "/tmp/rodrigo/roberto" | tr "/" "\n"
; do echo $x; done
sed -re 's/hosts: dns files/hosts: files dns/g' -i /etc/nsswitch.conf
tcpdump -n -i lo host lxpt904a.unix-int.intra-int.bdf-int.local port 514 netstat -i netstat -an | grep 514 ###interface ifconfig -a ifup INTERFACE
Login1@Serveur1:Chemin1/NomFichier1 Login2@Serveur2:Chemin2/NomFichier2
array="/etc/init/mongodb-mms-monitoring
/etc/init/mongodb-mms-backup-daemon
"
for element in $array
do
echo $element
done
rsync --exclude .git -avu --chmod=go+rX SOURCE USER@HOSTNAME:DEST
ln -frs .vimrc ~/
usermod -a -G groupname username
nmap -sT -O localhost