All commands (14,187)

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

Map the slot of an I/O card to its PCI bus address
Recent hardware may or may not enumerate *both of* these values

Restart openssh-server on your Synology NAS from commandline.
The correct way to restart openssh-server on your synology nas.

Attach screen over ssh
Directly attach a remote screen session (saves a useless parent bash process)

Install pip with Proxy
Installs pip packages defining a proxy

Rename files in batch

Make sure your script runs with a minimum Bash version
If you use new features of a certain Bash version in your shell script, make sure that it actually runs with the required version.

Remove all but one specific file

Dump sqlite database to plain text format
If you want edit your sqlite database in any uft8 supported editor, you can dump whole sqlite database to plain text.

Create an easy to pronounce shortened URL from CLI
Shorter regex.

Prevent shell autologout
Unset TMOUT or set it to 0 in order to prevent shell autologout. TMOUT is the number of seconds after which the present shell will be killed if it has been idle for that long.


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: