Command-line Fu (commandlinefu)
-
Mount important virtual system directories under chroot'ed directory: $ for i in sys dev proc; do sudo mount --b.. http://tinyurl.com/ct8o4g
-
Have you mooed today?: $ apt-get moo Submitted by unixmonkey1055 Options: View this command to comment.. http://tinyurl.com/cpp73l
-
Find different filetypes in current directory: $ find . -maxdepth 1 -type f -name '*.sh' -o -name '*.txt' Sub.. http://tinyurl.com/cwrwh5
-
Set Time Zone in Ubuntu: $ sudo dpkg-reconfigure tzdata Reconfigures time zone in Ubuntu, which I cannot figure .. http://tinyurl.com/cn7qpx
-
When feeling down, this command helps: $ sl $ sudo apt-get install sl $ man sl Submitted by Svish Options: .. http://tinyurl.com/c9u7ap
-
When feeling down, this command helps a bit: $ sl For explanation do $ man sl If it doesn't work, you might nee.. http://tinyurl.com/d2pq6l
-
Show all video files in the current directory (and sub-dirs): $ find -type f -printf '%P00' | egrep -iz '.(av.. http://tinyurl.com/dz7b39
-
Randomize the order of lines in a text file.: $ awk 'BEGIN {srand()} {print int(rand()*1000000) "t" $0}' FILE |.. http://tinyurl.com/cauzk3
-
Find a file's package or list a package's contents.: $ dlocate [ package | string ] This is the fastest method .. http://tinyurl.com/d5gb88
-
List your largest installed packages.: $ wajig large Requires the "wajig" package to be installed. Submitted by.. http://tinyurl.com/csf7r4
-
For Gentoo users : helping with USE / emerge: $ emerge -epv world | grep USE | cut -d '"' -f 2 | sed 's/ /n/g' .. http://tinyurl.com/ch2y67
-
Mount directories in different locations: $ mount --bind /old/directory/path /new/directory/path Like symlinked .. http://tinyurl.com/d3xo8t
-
Terminal redirection: $ script /dev/null | tee /dev/pts/3 can display the commands and their output to another .. http://tinyurl.com/c9ewes
-
(Debian/Ubuntu) Discover what package a file belongs to: $ dpkg -S /usr/bin/ls 'dpkg -S' just matches the strin.. http://tinyurl.com/cs39z7
-
(Ubuntu) Discover what package a file belongs to: $ dpkg -S /usr/bin/ls 'dpkg -S' just matches the string you s.. http://tinyurl.com/csj5hs
-
Backup your CD/DVD making a iso file: $ dd if=/dev/cdrom of=image.iso With this command you can backup you CD or.. http://tinyurl.com/cxuma3
-
Burn CD/DVD from an iso, eject disc when finished.: $ cdrecord dev=0,0,0 -v -eject yourimage.iso cdrecord -scanb.. http://tinyurl.com/cxhnfa
-
Burn an image to a USB stick: $ dd if=yourimage.img of=/dev/sdb1 where /dev/sdb1 is the name of your usb device.. http://tinyurl.com/cahjul
-
IP address of current host: $ hostname -i I've seen some versions of hostname that don't have the -i option, so .. http://tinyurl.com/dbq5f7
-
A faster ls: $ echo * Sometimes "ls" is just too slow, especially if you're having problems with terminal scrol.. http://tinyurl.com/dmrtf3