### Commands by MeaCulpa (3) the last day the last week the last month all time sorted by date votes

• Personally I think line wrap in default df command is annoying for scripting & seeing. So I overwrite it. Maybe more work should be done if wrapped line is over 2... Show Sample Output

-4
alias df="df | awk 'NF == 1 {printf(\$1); next}; {print}'" · 2011-04-09 06:43:51 • Use bc for decimals... 0 echo$(echo 'scale=2; ' '100 * ' $(eix --only-names -I | wc -l) /$(eix --only-names | wc -l) | bc -l)%
· 2010-10-25 15:42:15
• Aside from curl one will need iconv windows binary since windows lacks a native utf-8 cli interface. In my case I need a proxy in China and iconv to convert gbk status string into utf-8. GnuWin32 is a good choice with loads of coreutils natively ported to Windows "FOR /f" is the solution to pass iconv output to curl.

-5
FOR /f %%g in ('echo %1 ^| iconv -f gbk -t utf-8') DO curl -x proxy:port -u user:pass -d status=%%g -d source="cURL" http://twitter.com/statuses/update.xml
· 2010-07-21 04:53:54

### What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

### Check These Out

Execute a command before display the bash prompt
For example, if you are the type who type ls very often, then \$ PROMPT_COMMAND=ls will ls after every command you issue.

Most simple way to get a list of open ports

convert wav files to flac
cd to the folder containing the wav files, then convert them all to flac. yeah baby! in ubuntu, to get the flac program just: sudo apt-get install flac flac file input formats are wav, aiff, raw, flac, oga and ogg

Get the Volume labels all bitlocker volumes had before being encrypted
Get information of volume labels of bitlocker volumes, even if they are encrypted and locked (no access to filesystem, no password provided). Note that the volume labels can have spaces, but only if you name then before encryption. Renaming a bitlocker partition after being encrypted does not have the same effect as doing it before.

Minimize Apps When Middle Clicking on Titlebar
Middle click on titlebar to minimize apps

escape any command aliases
e.g. if rm is aliased for 'rm -i', you can escape the alias by prepending a backslash: rm [file] # WILL prompt for confirmation per the alias \rm [file] # will NOT prompt for confirmation per the default behavior of the command

Binary clock

history autocompletion with arrow keys
This will enable the possibility to navigate in the history of the command you type with the arrow keys, example "na" and the arrow will give all command starting by na in the history.You can add these lines to your .bashrc (without &&) to use that in your default terminal.

Bind a key with a command
the -x option is for binding to a shell command

Display formatted routes