Commands by gwiener (5)


Share Your Commands

Check These Out

generate iso

Fetch the current human population of Earth
They are using json now

Top ten (or whatever) memory utilizing processes (with children aggregate)
This command loops over all of the processes in a system and creates an associative array in awk with the process name as the key and the sum of the RSS as the value. The associative array has the effect of summing a parent process and all of it's children. It then prints the top ten processes sorted by size.

Create a new file

Search commandlinefu and view syntax-highlighted results in vim
Here is the full function (got trunctated), which is much better and works for multiple queries. function cmdfu () { local t=~/cmdfu; until [[ -z $1 ]]; do echo -e "\n# $1 {{{1" >> $t; curl -s "$1/`echo -n $1|base64`/plaintext" | sed '1,2d;s/^#.*/& {{{2/g' | tee -a $t > $t.c; sed -i "s/^# $1 {/# $1 - `grep -c '^#' $t.c` {/" $t; shift; done; vim -u /dev/null -c "set ft=sh fdm=marker fdl=1 noswf" -M $t; rm $t $t.c } Searches commandlinefu for single/multiple queries and displays syntax-highlighted, folded, and numbered results in vim.

Convert epoch date to human readable date format in a log file.

E-mail a traditional Berkeley mbox to another recipient as individual e-mails.

Output files without comments or empty lines
better integration. works on all Unices works one bash and ksh.

randomize hostname and mac address, force dhcp renew. (for anonymous networking)
this string of commands will release your dhcp address, change your mac address, generate a new random hostname and then get a new dhcp lease.

Mount a .iso file in UNIX/Linux
"-o loop" lets you use a file as a block device

Stay in the loop…

Follow the Tweets.



Subscribe to the feeds.


Subscribe to the feed for: