getting a directory's permissions and creating a new one with the same permissions
i am very new in programming in linux and i am a bit confused. I am trying to get the permissions of an existing directory and creating a new one with the same permissions.
I manage to get the the existing directory's permissions but how can i use the output in mode_t mode to create the new directory?
Welcome to LQ.
mkdir --mode=`stat --format=%a dir1` dir2
|All times are GMT -5. The time now is 07:41 PM.|