Commands by Ghani12 (0)

  • bash: commands not found

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

Fix subtitle timing (for .sub files)
Fix a microdvd (.sub) subtitle timing by making the phrases to appear 600 frames earlier.

PulseAudio: set the volume via command line
If you have more than one SINK

Define a quick calculator function
defines a handy function for quick calculations from cli. once defined: $ ? 10*2+3

Find the package that installed a command

prints line numbers
the sed way to print line numbers

Check whether laptop is running on battery or cable
The original proc file doesn't exist on my system.

Configure second monitor to sit to the right of laptop
You'll need to make sure your xorg.conf permits a virtual screen size this big. If it doesn't then xrandr should return a suitable error message that tells you the required size.

Show apps that use internet connection at the moment.
This corrects duplicate output from the previous command.

Which processes are listening on a specific port (e.g. port 80)
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"

Get table column names from an MySQL-database in comma-seperated form


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: