[Gllug] 'touch' command

Pete Ryland pdr at pdr.cx
Wed May 30 16:43:37 UTC 2007


On 30/05/07, john gennard <joney at clara.co.uk> wrote:
> I've used touch for years, and wanted to set permissions
> on some files I was creating. So, for the first time ever,
> I pulled up the man page and found it does not mention the
> creation of files. Is this a command everyone knows about
> but no one has 'written up'?

Use umask to change the default permissions before using touch in
order to set the permissions on the created file(s).

BTW, a quicker way to create a 0-byte file in bash is:

$ > filename

Pete
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list