UUID confusion revisited

Nils Kassube kassube at gmx.net
Tue Mar 25 06:32:42 UTC 2008


SYNass IT Ubuntu / Linux wrote:
> But normally to where are you place these own scripts ?
> Just into "/bin" ?? or into an extra folder i.e. /bin/scripts ???

If you want to use it as a private script which is only accessible to you 
and not to other users, put it in "$HOME/bin". Furthermore, if you make 
it executable with "chmod +w $HOME/bin/scriptname" you don't need the sh 
command. If you want to make it available for all users of the machine, 
put it in "/usr/local/bin".

> My version of the script got some little modifications already:
> I named it "UUIDcomp" and the two tmp outputs were renamed to
> UUID_drives.tmp & UUID_mounts.tmp !!
>
> How can i displayed i.e. ymmdd_hhmmss instead of "tmp" ???

That would be something like "UUID_drives.$(date '+%y%m%d_%H%M%S')". 
See "man date" for other formats.


Nils




More information about the ubuntu-users mailing list