Some GNU/Linux useful commands

user@host:~$ lsb_release -ds
user@host:~$ ls -al /usr/sbin/sendmail

or

user@host:~$ ls -al `which sendmail`
root@host # usermod -g GROUP -d USER_DIRECTORY -s USER_SHELL
user@host $ i=0; while [ "$i" -ne 5 ] ; do test=$RANDOM; let 'test %= 50'; echo "$test"; let i="$i"+1; done ; test=$RANDOM;let 'test %= 11';echo "$test"
user@host $ echo export DISPLAY=$DISPLAY \&\& 'find /mon/dossier/audios/ou/videos -type f | sed "s/\\s/\\\ /g" | sed "s/\x27/\\\&/g" | sort -R |  xargs -t vlc' | at 7h50
user@host $ touch --date=20150601 /tmp/begin; touch --date=20151231 /tmp/end; find /musics/ -newer /tmp/begin -not -newer /tmp/end -type f | sed "s/\\s/\\\ /g" | sed "s/\x27/\\\&/g" | sort -R |  xargs -t vlc
user@host $ find /tmp/ppp/ -type f | sed "s/\\s/\\\ /g" | sed "s/\x27/\\\&/g" | sort -R |  xargs -t vlc
user@host $ let "i = 360 / 12"; echo $i
user@host $ echo "scale=2; 23 / 7" | bc
user@host $ cat file | od -c
user@host $ rdesktop 192.168.1.200 -g1900x1024 -u domain\\administrator -p password -r disk:docs=/share -0 -r sound:remote
user@host $ xfreerdp /v:192.168.1.200 /w:1900 /h:1024 /u:"administrator" /p:"password" /cert-ignore /drive:share,/tmp/share
user@host $ exiftool -b -ThumbnailImage IMG_0605.jpg > thumbnail.jpg
user@host $ mkdir NEW; for i in *.jpg; do new=$(identify -format %[exif:*]  "$i" | grep DateTimeDigitized | sed 's/=/ /' | cut -d " " -f 2,3 | tr ":" "." | tr " " "_"| sed 's/$/.jpg/'); cp -a "$i" NEW/"$new"; done
user@host $ mkdir NEW; for i in *.ogg; do new=$(mediainfo -f "$i" | grep "File last modification date (local)" | tr -s " " | cut -d " " -f 7,8 | tr "-" "." | tr " " "_" | tr -d ":" | sed 's/$/.ogg/'); cp -a "$i" NEW/"$new"; done
user@host $ for i in *ogg; do a=$(ffmpeg -i "$i" -af volumedetect -f null - 2>&1| grep "max_volume:" | cut -d " " -f 5 | sed 's/-//'); i="${i%.ogg}"; ffmpeg -i "$i".ogg -af volume="$a"dB "$i"INCREASED.ogg; done
user@host $ for i in *ogg; do a="${i%.ogg}"; ffmpeg -i "$i" -aq 1 "$a".mp3; done
user@host $ dpkg -S courier-imap
user@host $ dpkg -L courier-imap
root@host # apt-get install lzip; tar --lzip -cvf - /my/fodler/ | ssh root@10.0.0.124 "cat > /backup/$(date +%Y.%m.%d)backup.tar.lz"
user@host $ for i in $(find /data/videos/ -size +1200M | grep -v "Name.That.I.Dont.Share" | sed "s/\s/__@__/g" | sort -R | head -n 30); do b=$(echo "$i" | sed 's/__@__/\ /g'); rsync -av "$b" root@host:/var/www/www.shebangthedolphins.net/shebangflix/; done
user@host $ host myip.opendns.com resolver1.opendns.com
user@host $ dig TXT +short o-o.myaddr.l.google.com @ns1.google.com
root@host # dmidecode -t chassis,system
user@host $ xfreerdp /v:192.168.1.200 /u:administrator /p:my_pass /size:1900x1000
Licence Creative Commons
This website http://shebangthedolphins.net is licensed to the public under a licence Creative Commons Attribution licence.
Contact :