commandlinefu.com is the place to record those command-line gems that you return to again and again.
Delete that bloated snippets file you've been using and share your personal repository with the world. 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.
You can sign-in using OpenID credentials, or register a traditional username and password.
First-time OpenID users will be automatically assigned a username which can be changed after signing in.
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.
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:
Wow, didn't really expect you to read this far down. The latest iteration of the site is in open beta. It's a gentle open beta-- not in prime-time just yet. It's being hosted over at UpGuard (link) and you are more than welcome to give it a shot. Couple things:
Given a hosts list, ssh one by one and echo its name only if 'processname' is not running.
Monitoring system in one line :
DISK : disk space
MEM: memory ( mem , swap, Total)
CPU : all information about cpu activity
LOAD : load average
Top 30 History Command line with histogram display
capture 2000 packets and print the top 10 talkers
Caution: distructive overwrite of filenames
Useful for concatenating pdfs in date order using pdftk
Reduced to only one command. :)
Thx Mass1 for the sharing
This command makes a small graph with the histogram of size blocks (5MB in this example), not individual files. Fine tune the 4+5*int($1/5) block for your own size jumps : jump-1+jump*($1/jump)
Also in the hist=hist-5 part, tune for bigger or smaller graphs
Calculate the date of Sysadmin day (last Friday of July) of any given year
Downloads a CRL file, determines the expiration time, and checks when it will expire
Great for moves, re-installs etc since it is not version specific yet is architecture specific.
Centos yum list is well know for wrapping lines .
Recently in Debian Wheezy the dpkg command refuses to work with wildcards, so this is the one-liner alternative. (alternative to #13614)
Recently in Debian Wheezy the dpkg command refuses to work with wildcards, so this is the one-liner alternative.
Gets the Hardware UUID of the current machine using system_profiler.
I just use this to see my ip on the server I'm working on