Commands by altern (5)


  • -1
    find . -name *.properties -exec /bin/echo {} \; -exec cat {} \; | grep -E 'listen|properties'
    altern · 2014-02-17 02:25:49 1
  • while [ $orig_size -gt $dest_size ] ; do dest_size=$(stat -c %s $2) pct=$((( 69 * $dest_size ) / $orig_size )) echo -en "\r[" for j in `seq 1 $pct`; do echo -n "=" done echo -n ">" for j in `seq $pct 68`; do echo -n "." done echo -n "] " echo -n $((( 100 * $pct ) / 69 )) echo -n "%" done Show Sample Output


    0
    progr
    altern · 2011-07-27 15:17:51 7

  • -1
    dd bs=1 if=/dev/zero of=/path/to/imagename.raw seek=50G count=1 conv=notrunc
    altern · 2011-07-15 09:54:26 0

  • -2
    ls -t1 | head -n1
    altern · 2011-05-27 09:49:30 2
  • shows opened ports on machine in continuous mode (refreshing every 10 sec) Show Sample Output


    0
    netstat -tulpnc
    altern · 2011-04-20 07:30:31 1

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.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: