Re: what's with that trailing "." for the mode from "ls -l"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2009-11-12 at 08:58 -0500, Robert P. J. Day wrote:
>   that's ok, it was only an issue because of the incredibly hacky way
> that a numeric mode was being reproduced from an existing file -- by
> grabbing the current symbolic mode, then running it through sed to get
> the numeric mode back.  yuck.
> 
>   as someone noted here earlier, using "stat" is way simpler.

If you just need to propagate permissions from one path name to another
you can use chmod directly:

chmod --reference=/path/to/source /path/to/dest

Regards,
Bryn.


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux