Is there any way to make file A has exactly same file permission as file B without specify permission like 777. For example, usually I ls
file B and check its permission setting. Then 'chmod ??? fileA'. However, I am looking for a command like
chmod --argument_to_copy_file_permission fileA fileB
Please advise.
EDIT: By the way, is there any command to see file permission in digit mode (like 777), thanks.