Disable service, then if still listening restart inetd to unbind it. Use update-rc.d for disabling other types of services.
Allows to change 'shell' compatible files execution bit even if their name is not *.sh
Returns the IP, broadcast, and subnet mask of your interfaces absent any other extraneous info. I know it's a bit lame, but I've created an alias for this when I *quickly* want to know what a system's IP is. Small amounts of time add up :) Show Sample Output
It'll print the file names preserving the spaces in their names and adding new line after every new filename. I wrote this to quickly find out how many files in any directory is owned by a particular user. This can be extended using pipe and grep to do much more. Show Sample Output
Dump all the tweets with the keyword "obama" or "barack", in json format, to a file.
If you want you can provide the password directly on the line:
curl -s -u $USERNAME:$PASSWORD -X POST -d "track=obama,barack" https://stream.twitter.com/1.1/statuses/filter.json -o twitter-stream.out
Gets your IP address and has a shorter URL. Show Sample Output
hdjjjhdfdjdjgmgjmfggjgj Show Sample Output
count all the lines of code in specific directory recursively in this case only *.php can be *.*
This will do a clean up of stopped containers and volumes used by them Show Sample Output
say you've just found all the config files with this command find . -name '*.config' and you need to edit them all vi `!!` will re-execute the command and present them to vi in the argument list don't use if the list is really long as it may overflow the command buffer
On RHEL, Fedora and CentOS systems, and maybe others, the sbin directories aren't in the user's $PATH. For those systems that use 'sudo', this can be inconvenient typing the full path all the time. As a result, you can easily take advantage of adding the sbin directories to your PATH by adding this simple line to you .zshrc.
I'm not well enough versed in the differences between ffmpeg & mencoder to know which one is better.
This will find any regular file starting with the current directory and use /dev/urandom to overwrite that file. It will is the same size of the file (in blocks) as the file. Can't handle files with spaces or odd characters in the name (who does that anyway?)
This will also print the path to file which is not included in the other examples. Show Sample Output
If you are installing some new package. You can first go through the step by step install and then take the commands that you ran from history to create shell script which can used to install the package on other machines say test or production.
Like ps on unix, but for windows. Show Sample Output
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: