convenience.
Resets a scrambled terminal into its orignal state.
The command `cat file >> file` failes with the following error message: cat: file: input file is output file `tee` is a nice workaround without using any temporary files. Show Sample Output
In this case, we'll be editing every PHP file from the current location down the tree. You can show all the files in the vim buffer with :buffers which outputs something like, :buffers 1 %a "./config/config.php" line 1 2 "./lib/ws-php-library.php" line 0 3 "./lib/css.php" line 0 4 "./lib/mysqldb.class.php" line 0 5 "./lib/config.class.php" line 0 6 "./lib/actions.php" line 0 Press ENTER or type command to continue If you'd like to edit ./lib/mysqldb.class.php for example, enter :b4 anytime you're editing a file. You can switch back and forth. Show Sample Output
Purges DNS cache of OS X. dscacheutil -flushcache does not work since OS X 10.7. Show Sample Output
from https://bitbucket.org
This uses spotlight indices to find files that have recently been added. Other options include underscore separated versions of: this week, this month, this year; today, yesterday. Show Sample Output
A grep against ethtool to look for common errors and packet loss statistics which network drivers report in their private data, which is queried with ethool -S. This is the current grep used in xsos (https://github.com/ryran/xsos), which I originally contributed and has been improved by the community over time. Show Sample Output
Find which package a file belongs to on Solaris along with it's packaging system metadata. Show Sample Output
To highlight the difference between screen updates
It can transfer files through the http, gopher, finger, and ftp protocols without user interaction. It is small and fast. Show Sample Output
This command is jsut for the main IP settings of ndd. if you need ip6 or icmp edit the text within the egrep inclusion area. Felix001 - www.Fir3net.com Show Sample Output
This command allows you to stream your log files, including gziped files, into one stream which can be piped to awk or some other command for analysis.
Note: if your version of 'find' supports it, use:
find /var/log/apache2 -name 'access.log*gz' -exec zcat {} + -or -name 'access.log*' -exec cat {} +
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: