Month: September 2014

bash – refer the first parameter from last command quickly

To refer to first parameter from the last command quickly, you can use

!^

Note: This can also be referred as “!!:1

bash refer parameters from the current command

In bash you can use

!#

to refer to any parameter from the current command, example:

mv ak amit.!#:1.txt
ls amit.ak.txt

Download Ticket Service – dl is now on fedora.

From : http://www.thregr.org/~wavexx/software/dl/

“dl” is a file exchange service that allows you to upload any file to a web server and generate a unique ticket for others to download. The ticket is automatically expired according to the specified rules, so that you don’t need to keep track or cleanup afterward. “dl” also allows you to grant an anonymous, one-time upload for others to send you a file, without the requirement of account management.

“dl” can directly be integrated into Thunderbird (see DL for Thunderbird), also includes two native clients (see dl-wx, or watch the introduction) that allow to use the service directly from the shell for maximum convenience, without opening a browser!

“dl” is usually installed as a “email attachments replacement” due to its simplicity (though can be used in other ways).

To install on Fedora:

sudo yum install dl