Just more ramblings of another IT Guy

Copy file permissions from one file to another!!!

As the subject says the following can be used to copy the permission settings from one file to another

 

chmod –reference <reference-file> <target-file>

 

Example: chmod –reference <tobecopied.txt> <destination.txt>

This entry was posted in Handy Linux Commands. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *