This will drop you into vim to edit all files that contain your grep string.
Next time you see a mac fanboy bragging about 64-bitness of 10.6 give him this so he might sh? Show Sample Output
biggest->small directories, then biggest->smallest files Show Sample Output
another possibility
Show time and date when you installed your OS. Show Sample Output
using awk missed the last char thanks @Josay Show Sample Output
Can change language and speed, see espeak man page for options. (Install espeak in your linux distro via yum or apt-get) For insomniacs you may need to enclose in a while true; do ...; done loop ;) Show Sample Output
use manpages, they give you "ultimate commands" "ls -SshF --color" list by filesize (biggest at the top) "ls -SshFr --color" list by filesize in reverse order (biggest at the bottom) Show Sample Output
adding users to groups on OS X is not a straightforward process, you need to use the new in built in Directory Service command line utility...
Sorts a character string, using common shell commands. Show Sample Output
using bc is for sissies. dc is much better :-D Polish notation will rule the world... Show Sample Output
For Mac OS X users only
This command uses nmap to perform reverse DNS lookups on a subnet. It produces a list of IP addresses with the corresponding PTR record for a given subnet. You can enter the subnet in CDIR notation (i.e. /24 for a Class C)). You could add "--dns-servers x.x.x.x" after the "-sL" if you need the lookups to be performed on a specific DNS server. On some installations nmap needs sudo I believe. Also I hope awk is standard on most distros. Show Sample Output
-l auto-selects many more digits (but you can round/truncate in your head, right) plus it loads a few math functions like sin(). Show Sample Output
Only one command and not dependant on full read access to the devices. Show Sample Output
Show today date on a yearly calendar.
simple way to show free swap Show Sample Output
free swap
see about php install configure Show Sample Output
I find this format easier to read if your going through lots of files. This way you can open the file in any editor and easily review the file
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: