Using GNU Grep with perl regexp (works on newer Ubuntus) Show Sample Output
by determining most popular use in history using percentage . Show Sample Output
list all directory sizes and sort by size
debian kernel 4.4.6 Show Sample Output
As output, checksums and filenames will be printed.
tune ping's -c and parallel's -j for your needs Show Sample Output
Results will be shown in columns. Only different files and files in one directory that is not in the other will be shown.
Order and uniq
Use comm command to compare two text files and display lines that are exactly the same on both files and write those to a new output file using tee
Useful to see what ports are taken by running services. 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
Useful in scripts to compare known malicious IP addresses with what you are actually blocking. Show Sample Output
Check the connection of the maximum number of IP Show Sample Output
Shows the size of folders and files, sorted from highest to lowest in human format (gb, mb,kb,etc...) Very useful to see the folders that are occupying more space. Show Sample Output
Show file count into directories. Usefull when you try to find hugh directories that elevate system CPU (vmstat -> sy) Show Sample Output
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
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: