Tuesday, 28 November 2017

Clone ownership and permissions from another file on Linux


Both chown and chmod commands has option '--reference' to clone ownership and permissions

chown --reference=<srcFile> <destFile>
chmod --reference=<srcFile> <destFile>

No comments:

Post a Comment

Total Pageviews

Popular Posts