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.
If you have a new feature suggestion or find a bug, please get in touch via http://commandlinefu.uservoice.com/
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:
To check the total number of mounts, maximum number of mounts before performing the fsck and last time when the fsck was performed.
This version works on OS X (if you have installed `rename`)
converts non-ISO dos text files for use on unix systems.
This is just for fun.
Article mentions what each part of the command is responsible for.
Converts a single-track KML (Keyhole Markup Language) file to a GPX file. KML is the geospatial format of choice used by Google Earth, but doesn't interoperate with other GIS applications, websites, or devices ? almost all of which accept GPX.
Shows the "parent" package of a given file.
This version now adds a header with consecutive numbering.
lynx -dump ip.nu
Your IP address is 0.0.0.0
also use: update-alternatives --config gnome-www-browser
It is not the installed size in files, but the size of RPM packages.
Uses the python-based AWS CLI (https://aws.amazon.com/cli/) and the JSON query tool, JQ (https://stedolan.github.io/jq/)
The dmesg will show the kernel it is booting. No more dependency on files
create tar.bz2 package from files "-type f" modificated today "-mtime -1" in ~/project
On Solaris 10 you used dtconfig -d to achieve this. The command will disable X and your system will now boot to a text console.
Center the output text in max line length of buffered output pipe;
Requires wdiff. Prints the word-by-word diff with the old version highlighted in red, and the new in green. Change the colors by altering 41m and 42m. 45m is more of a magenta and may be easier to read.
Prints top 5 twitter topics. Not very well written at all but none of the others worked.
This turns your iptables packet filter to a "Allow any from any to any" filter, so you can rule out any filtering issues when you have a problem to enable a connection from or to your host.
To re-enable it, run /etc/init.d/iptables restart