雨山
Home
Wiki
Blog
Copying permissions one from file to another
chown
--reference
=
file1 file2
chmod
--reference
=
file1 file2
Sources
https://unix.stackexchange.com/a/20646