I've been a linux user for a fair amount of time now, but it's just now that I'm getting really used to the command line interface.
I've picked up a few cool tidbits here and there, and I'm sure a lot of you have too, so let's hear 'em.
-----
Here's a flexible sequntial download (think ezpics)
Code:
for NUM in `seq -f %02g 00 30`; do URL="http://www.coasar.com/newgalleries/pbc/ahv/03/images/fullimage/0$moo.jpg"; wget $NUM 2>/dev/null && echo Downloaded $URL || echo " Failed $URL" ; done
you can type that into console and away we go. (
by the way, that link is NSFW)
-----
This one I picked up on the net somewhere.
I use firefox almost exclusively, so I set up aMSN to open up links with firefox. The major problem with that though is that if I'm already "surfin' the web" firefox will ask me to launch with a different profile.

Here's a fix that will make it so that if firefox is already open it'll open the link in a new tab. Open up your favorite text editor *cough*VI*cough* and paste this:
Code:
#!/bin/bash
/etc/firefox/firefox -remote "openURL($@, new-tab)" >/dev/null || exec /etc/firefox/firefox "$@" >/dev/null;
Make sure to save that file somewhere in your $PATH
Now you can do stuff like this (i called mine firefox_newtab)
I'm pretty sure that if you use mozilla you can just replace every instance of "firefox" with "mozilla".
-----
This is likely common knowledge but I'm going to write in anyway, just incase someone finds it usefull.
In my tips i used
&& (and) and
|| (or).
If two commands are seperated by && then the the second will only be executed if the first one is sucessfull. For example:
Code:
./configure && make
if configure fails (which it does so often) make won't even start.
If two commands are sperated by || (two pipes, shift + \ ) the second command will only execute if the first fails. E.g.:
If you follow a command with >/dev/null it won't print it's standard output to the screen. Compares these:
Code:
echo Beyond here lie dragons
echo Beyond here lie dragons >/dev/null
Anyway, I'm very much still new at this and I'm curious about something that other people have picked up over the years.