commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
The command generate an huge output file (depending on screen resolution and time).
Use find to recursively make a list of all files from the current directory and downwards. The files have to have an extension of the ones listed. Then for every file found, grep it for 'searchString', returns the filename if searchString is found.
Essentially the same as funky's alias, but will not traverse filesystems and has nicer formatting.
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.
There can be more than one trailing slash, all of them will be removed.
In 2014, ask a kind of specific UAC authorization to run due to his dangerousity.
This command will generate "CHECK TABLE `db_name.table_name` ;" statements for all tables present in databases on a MySQL server, which can be piped into the mysql command. (Can also be altered to perform OPTIMIZE and REPAIR functions.)
Tested on MySQL 4.x and 5.x systems in a Linux environment under bash.
XDMCP ust be enabled (gdm,lightdm,xdm etc )
In July 2008, there was an uproar over Foxconn motherboards feeding Linux installs incorrect ACPI information (http://ubuntu-virginia.ubuntuforums.org/showthread.php?t=869249).
Foxconn has gladly corrected their mistake, but make sure it's not happening on your motherboard!
After running the command, just view the 'dsdt.dsl' in any editor you like.
This command adds your pem key to SSH so that you no longer have to manually specify it when connecting to EC2 instances.
# you can do this:
# instead of this:
ssh -i ~/.ssh/KEY_PAIR_NAME.pem ec2-instance.amazonaws.com
This will create rapidly an html menu. You can paste it in you're html page with the middle button(the wheel). I didn't test it in an html with css, but it seems alright.
Uses xargs to call the second grep with the first grep's results as arguments
requires the package tofrodos on Debian/Ubuntu:
sudo apt-get install tofrodos
This uses curl to find out the access times of a web service
This command will replace all instances of 'foo' with 'bar' in all files in the current working directory.
You'll first need to install the uuid package. Available immediately from apt in Ubuntu, Debian, or other myriad Debian variants. You could always compile it from source as well.