Commands by lilywilson792 (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

Make all GUI stuff show up on the display connected to the computer (when you're logged in via SSH)
If you have multiple displays or monitors the DISPLAY environment variable will tell X where to send the output. This is very handy for setting up a mediacenter at home. You can plugin the computer to the TV and then ssh to the computer and set the DISPLAY as above, then run your program and it will show up on the TV.

Find usb device in realtime
Using this command you can track a moment when usb device was attached.

Display current time in requested time zones.
The time zone names come from the tz database which is usually found at /usr/share/zoneinfo.

cp the file
Copy the file with the given .extension at the source file's location. Eliminates the typing of long paths again and again.

Create a tar of directory structure only
The original suggestion did not work for me, when operating on folders located on an external mount (ie other than the root device) in Ubuntu. A variation using xargs does the trick.

Stat each file in a directory
Possible simplification of egrep-awk-sort with find and -exec with xargs.

generate 30 x 30 matrix
Replaces hexdump with the more succint xxd, and the sed was unnecessarily complex.

modify a file in place with perl
changes THIS to THAT in all files matching fileglob* without using secondary files

Send an email from the terminal when job finishes
Might as well include the status code it exited with so you know right away if it failed or not.

Jump to a directory, execute a command and jump back to current dir


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: