unique string

Brad De Vries devriesbj at gmail.com
Mon Dec 21 08:58:53 PST 2009


On Mon, Dec 21, 2009 at 11:15 AM, Vu Pham <vu at sivell.com> wrote:
> To generate a temporary and unique directory name, I use uuidgen for the
> unique string, something like tempdir=`uuidgen`;mkdir
> /tmp/$tempdir;...;rmdir -r -f /tmp/$tempdir.
>
>
> Just want to learn what other tool you would do for that.
>
> Thanks,
> Vu

I use the 'mktemp' command.

Brad.



More information about the Linux-users mailing list