No need $_ netp ;)
since we're repeating the command there after the semicolon, we only need one backtick Show Sample Output
If you use colored ls(1), the broken symbolic links significantly differ from regular files and directories in the ls listing. In my case it is bright red. 0 is for getting the first place in the list.
works only in zsh, requires EXTENDED_GLOB to be set.
list all files are greater than 10mb lent from: http://www.tippscout.de/linux-grosze-dateien-finden_tipp_1653.html
Using egrep to search multiple patterns. Show Sample Output
4.1.6-1-ARCH Info cpu
This will clear Mac OS's DNS cache, which has been a source of issues for me in the past.
splitting email by @ with awk Show Sample Output
Sets the Open Firmware to ask for password when selecting a boot volume other then the hd
sudo apt-get install bb A demoscene intro in ascii art with tracker song
If you need to randomize the lines in a file, but have an old sort commands that doesn't support the -R option, this could be helpful. It's easy enough to remember so that you can create it as a script and use that. It ain't real fast. It ain't safe. It ain't super random. Do not use it on untrusted data. It requires bash for the $RANDOM variable to work. Show Sample Output
searches through the linux dictionary for the word you're trying to spell (you can use regular expressions, e.g. "< /usr/share/dict/words egrep bro[c]+o[l]+i" ) Show Sample Output
This zips a directory recursively but excludes some directories within the zipped directory. Useful for excluding .svn and .git directories, or compilation targets.
If your version of curl does not support the --compressed option, use
curl -s http://funnyjunk.com | gunzip
instead of
curl -s --compressed http://funnyjunk.com
optipng *.png
http://www.mobileread.com/forums/showpost.php?p=147076&postcount=7
-dither FloydSteinberg produces a more uniform dither than the default.
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: