copy permission ( mode ) of a folder
I have a directory in linux server , its directory permission ( mode ) is drwxrwx---+ , I want to create a directory its mode is the same as this directory , would advise how to copy the mode but not copy anything in the directory ? thanks
I tried , cp -p -r dir dir , but it copy all sub-directory also .
|