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: ssh ec2-instance.amazonaws.com # instead of this: ssh -i ~/.ssh/KEY_PAIR_NAME.pem ec2-instance.amazonaws.com Show Sample Output
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. Show Sample Output
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 Show Sample Output
This command will replace all instances of 'foo' with 'bar' in all files in the current working directory.
http://en.wikipedia.org/wiki/Universally_Unique_Identifier http://www.ossp.org/pkg/lib/uuid/ 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. Show Sample Output
sends notification msg within repeated intervals of time to notify-send ;) Just for fun.
"That's it. Not much to see here. The first command writes any cache data that hasn't been written to the disk out to the disk. The second command tells the kernel to drop what's cached. Not much to it. This invalidates the write cache as well as the read cache, which is why we have the sync command first. Supposedly, it is possible to have some cached write data never make it to disk, so use it with caution, and NEVER do it on a production server. You could ... but why take the risk? As long as you are running a post 2.6.16 kernel,..." Source: http://ubuntuforums.org/showpost.php?p=3621283&postcount=1
If you have a directory with lot of backups (full backups I mean), when it gets to some size, you could want to empty some space. With this command you'll remove half of the files. The command assumes that your backup files starts with YYYYMMDD or that they go some alphabetical order. Show Sample Output
Add `-maxdepth 1` to find to exclude subfolders.
This command will replace all instances of 'foo' with 'bar' in all files in the current working directory and any sub-directories.
Additionally it may give your geolocation if it's known by hostip.info Show Sample Output
alternative using 'host' Show Sample Output
XML version. Additionally it may give your geolocation if it's known by hostip.info Show Sample Output
display IP's that unsuccessfully attempted to login 5 or more times today may want to filter any trusted IP's and the localhost useful for obtaining a list IP addresses to block on the firewall Show Sample Output
Add a repo to cobbler. To download all the repository contents the command is:
cobbler reposync
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: