We can get useful statistics from tcpdump with this simple command. Thanks "Babak Farrokhi" to teaching me this ;)
Useful for checking the number and state of TCP connections. Show Sample Output
Grabs the complete module list from CPAN, pulls the first column, ditches html lines, counts, ditches small namespaces.
See the summary. Show Sample Output
shows number of mysql bin log events (which are mysql server events) per minute, useful to check stress times postmortem Show Sample Output
make usable on OSX with filenames containing spaces. note: will still break if filenames contain newlines... possible, but who does that?!
parallel can be installed on your central node and can be used to run a command multiple times. In this example, multiple ssh connections are used to run commands. (-j is the number of jobs to run at the same time). The result can then be piped to commands to perform the "reduce" stage. (sort then uniq in this example). This example assumes "keyless ssh login" has been set up between the central node and all machines in the cluster. bashreduce may also do what you want. Show Sample Output
Show's per IP of how many requests they did to the Apache webserver
The first sort is necessary for ips in a list to be actually unique.
Same as the rest, but handle IPv6 short IPs. Also, sort in the order that you're probably looking for. Show Sample Output
displays a list of all file extensions in current directory and how many files there are of each type of extension in ascending order (case insensitive) Show Sample Output
on some distro's you have to replace "BogoMIPS" with "bogomips". Show Sample Output
Sort netflow packet capture by unique connections excluding source port. Show Sample Output
credit shall fall to this for non-gzipped version: https://gist.github.com/marcanuy/a08d5f2d9c19ba621399 Show Sample Output
capture 2000 packets and print the top 10 talkers
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: