OSX's BSD version of the du command uses the -d argument instead of --max-depth.
Use `zless` to read the content of your *rss.gz file:
zless commandlinefu-contribs-backup-2009-08-10-07.40.39.rss.gz
Show Sample Output
jhead is a very nice tool to do all sorts of things with photographs, in a batch-oriented way. It has a specific function to rename files based on dates, and the format I used above was just an example. Show Sample Output
Renames all the jpg files as their timestamps with ".jpg" extension. Show Sample Output
In Bash, when defining an alias, one usually loses the completion related to the function used in that alias (that completion is usually defined in /etc/bash_completion using the complete builtin). It's easy to reuse the work done for that completion in order to have smart completion for our alias. That's what is done by this command line (that's only an example but it may be very easy to reuse). Note 1 : You can use given command line in a loop "for old in apt-get apt-cache" if you want to define aliases like that for many commands. Note 2 : You can put the output of the command directly in your .bashrc file (after the ". /etc/bash_completion") to always have the alias and its completion Show Sample Output
Converts every *.eps file to a *.pdf file
Replace 'this' with 'that'
since fuse mounts do not appear in /etc/mtab (fuse can't write there, dunno if it would if it could) this is propably a better way.
Tres lineas en un shell script para copiar la base de datos diaramente
Nothing fancy it just converts one file from one character encoding into another one.
Remove newlines from output. One character shorter than awk /./ filename and doesn't use a superfluous cat. To be fair though, I'm pretty sure fraktil was thinking being able to nuke newlines from any command is much more useful than just from one file.
Easy way to see your real external IP Show Sample Output
Lets you set all the java alternatives at once to a matching version. Also has options for just changing the jre or the plugin.
cat? dd? RTFM
?Cat and grep? You can use only grep ("grep \. filename"). Better option is awk.
Pipe any output to "grep ." and blank lines will not be printed.
Easy and direct way to find this out. Show Sample Output
Using DynDNS or a similar service not only allows access to your home machine from outside without needing to know what IP the ISP has assigned to it but it also comes in handy if you want to know your external IP address. The only purpose of the sed command is to remove the leading "host.na.me has address " part from the output. If you don't need to discard it you can simply use
host $HOSTNAME
On Ubuntu, if tzwatch is installed, then you can call up in terminal the output for every time zone configured in gWorldClock. Show Sample Output
On Ubuntu, if tzwatch is installed, then you can call up in terminal the output for every time zone configured in gWorldClock. Show Sample Output
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.
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
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: