Command Line

debian os version
lsb_release -ds
Aggiungere testo all'inizio ed alla fine di ogni riga
sed -i -e 's/^/TESTO ALL'INIZIO/g' -e 's/$/TESTO ALLA FINE/g' <FILENAME>
Convert .ts to .mkv
ffmpeg -i <input file.ts> -vcodec libx264 -acodec libmp3lame -ab 192k -ar 44100 -ac 2 -sn <output file.mkv>
send mail text from command line (mail, echo)
echo "message words" | mail -s <object> <address>
Network IP scan (Host discovery: Ping Scan - disable port scan)
nmap -sn <192.168.3.0/24> --dns-server <192.168.3.1>
change speed on play multimedia files
mplayer -speed <value> <multimediafile>
re-encoding mpg
ffmpeg -i <infile> -vcodec copy -acodec copy <outfile>
encode cd mixed/live (mp3)
abcde -1 -a default,cue
Debian, visualizzare lo spazio occupato dai pacchetti
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n