Create an alias to list all contents of the current directory in "reverse" time order. Thus the last modified file will appear just above your next prompt. Useful for remembering where you left off modifying files in a folder or just noting recent changes. csh format but bash syntax similar
Ever need to output an entire directory and subdirectory contents to a file? This is a simple one liner but it does the trick every time. Omit -la and use only -R for just the names
this command shows the space used in postgres directory. Show Sample Output
If you edit your .profile you need to refresh it for changes to take place. Simple way to refresh is logout and login. This command is the quickest way to do it. If you're deleting some variables, they would not get nulled with this command but just removed.
This will create a new directory called MyProject with a pom.xml and the following tree structure: MyProject |-->pom.xml |-->src | |-->main | | |-->java | | | |-->my | | | | |-->work | | | | | |-->App.java | |-->test | | |-->java | | | |-->my | | | | |-->work | | | | | |-->AppTest.java
Will rot 13 whatever parameter follows 'rot13', whether it is a string or a file. Additionally, it will rot 5 each digit in a number
if you want to replace "foo" with "bar" in all files in a folder, and put the resulting files into a new subfolder
Finds a string in files recursively below the current directory on systems without the "egrep" and its "-r" functionality. Show Sample Output
You can also use sha1sum and variants for longer passwords Show Sample Output
Alrighty, so I was really bored ;) Show Sample Output
The taskkill command has the option of the curve, for a complete list just type: taskkill /? As we know, but to give a practical example, suppose you want to act only on the user's processes Cicciopalla use this command
Looks like you're stuck with sed if your ls doesn't have a -Q option.
Might match "ping 192.168.0.1" and then run it.
Now all you have to do is replace user by your twitter username , pass by your password and the text inside status to whatever you wish to set your status too . It uses cUrl library to post your messsage
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: