Order and uniq
remove the IP from proxy reverse server and parentesis from real IP obtained from X-forwarder_IP Show Sample Output
Seems to work on Ubuntu 14.02 LTS Show Sample Output
Abort/Break with CTRL-C when no output is shown anymore (break while true loop). Show Sample Output
To allow recursivity :
find -type f -exec md5sum '{}' ';' | sort | uniq -c -w 33 | sort -gr | head -n 5 | cut -c1-7,41-
Display only filenames :
find -maxdepth 1 -type f -exec md5sum '{}' ';' | sort | uniq -c -w 33 | sort -gr | head -n 5 | cut -c43-
Show Sample Output
to find and cut between to strings with grep and cut Show Sample Output
Show the executable that spawned the process and show the PID and ORACLE_HOME relative to the environment within which the process is running.
It works extremely fast, because it calculates md5sum only on the files that have the same size and name. But there is nothing for free - it won't find duplicates with the different names. Show Sample Output
For example to add up the disk usage at several disjoint locations. The $[..] is for arithmetic evaluation in bash. Alternatively pipe to the bc command. Show Sample Output
Create an index.html containing links of the current folder and serve on the local network Show Sample Output
This version accounts for the MiB/KiB suffix output by pacman these days.
A function for retrieving and displaying a list of synonyms for a German word or phrase. Show Sample Output
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.
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
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: