Commands by incognitus (1)

What's this?

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.

Share Your Commands


Check These Out

Edit 2 or more files in vim using vim -d
Use vim's diff mode to edit two or more files in one window. The '+diffoff!' turns off diff highlighting when the session is started. Use ctrl+w + ctrl+w to switch between windows.

Find the package that installed a command

output length of longest line
If your wc does not have the -L option, you can use awk.

Display a list of committers sorted by the frequency of commits
Use this command to find out a list of committers sorted by the frequency of commits.

Mount a Windows share on the local network (Ubuntu) with user rights and use a specific samba user

Delete line number 10 from file
Very useful when the ssh key of a host has changed and ssh refuses to connect to the machine, while giving you the line number that has changed in ~/.ssh/known_hosts.

Add line number count as C-style comments
I often find the need to number enumerations and other lists when programming. With this command, create a new file called 'inputfile' with the text you want to number. Paste the contents of 'outputfile' back into your source file and fix the tabbing if necessary. You can also change this to output hex numbering by changing the "%02d" to "%02x". If you need to start at 0 replace "NR" with "NR-1". I adapted this from http://osxdaily.com/2010/05/20/easily-add-line-numbers-to-a-text-file/.

Install pip with Proxy
Installs pip packages defining a proxy

Best kayak chiang
Just how to best outfit your fishing kayak can rely upon they type of fishing you're performing and the conditions you'll encounter. Little streams and seas need different concerns than offshore huge game fishing for instance. Whatever form of fishing you want to do, kayak fishing has some distinctive factors as the space is limited. It will be vital that you prioritize the most crucial things that you'll require to gain access to most regularly, and have them within simple reach. Some fishermen like to help keep it simple and hold the minimal level of gear: some like to hold something that they might probably need. There are several standard components that will raise the fish-ability of a kayak, or ensure it is more angler-friendly. Seats: Different than the usual exercise and your fishing equipment I'd claim that a high quality seat are at the the top of priority list. If you intend to spend your day fishing in comfort, you need to purchase a kayak with an excellent seat, or install one yourself. Pole Members: These are easy and useful areas to carry your rods securely while paddling, fishing or trolling. Some kayaks result from the factory with flush mounted rod slots or rod cases mounted on variable brackets. Some kayak retailers may modify your kayak by rigging pole cases for you really to match the wants of one's fishery: you may prefer to platform your own. There are numerous different models and types of rod holders from which to choose 1. Remove support rod holders are reduced in profile and give you a clear deck, so are not as likely becoming a range catcher (especially when travel fishing). There are plugs readily available for travel rods, and extensions for mainstream rods. Both could be removed when not in use. 2. Flexible pole members that are attached to the terrace are fully variable up and down, and provide 360-degree rotation. They come in types for spin/bait throwing or fly rods. Some may be removed when maybe not in use, which really is a great function if you are fly fishing. 3. There many other choices for mounting pole cases to seats, dairy crates and several other custom rigs. 4. Whatever the kind of pole holders you utilize, you ought to connect a pole lead therefore you may not lose them overboard. When you have to create a surf entry or exit, you must keep or secure your supports so they're maybe not lost in case of Best kayak chiang. Point Programs: These let you not just to stay in one spot where you would like to fish, but and also to fish a big area in an organized way. If you are sight fishing, blind throwing, or trolling you will need to cover the location as thoroughly that you can, and the correct anchor system will enable you to do so. You need to begin with an point basket as the base for the point system: a constant line working via a pulley on your own bow to a pulley on your stern with a snap land on each conclusion, and mounted on a band in the middle. You are able to fix your anchor line to or through the band, allowing you to modify your anchor point from any stage along the entire length of the kayak.

Write comments to your history.
A null operation with the name 'comment', allowing comments to be written to HISTFILE. Prepending '#' to a command will *not* write the command to the history file, although it will be available for the current session, thus '#' is not useful for keeping track of comments past the current session.


Stay in the loop…

Follow the Tweets.

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

Subscribe to the feeds.

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: