commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
cn stands for "Cat Null"
The idea is that sometimes you run across something on maybe a webpage - like commandlinefu - that you want to try out on your terminal. You could put a '#' in and then paste it, but what if it is several lines?
This command will echo the pasted characters to the screen and divert them to the bit bucket.
Put this simple alias in your .bashrc, hit cn, paste away, and hit a ctrl+c or a ctrl+d when you are done to get your prompt back.
There is 1 alternative - vote for the best!
If you can do better, submit your command here.
You must be signed in to comment.