I am using a linux system and need to experiment with some permissions on a set of nested files and directories. I wonder if there is not some way to save the permissions for t
you can get the file's permissions with
ls -l | awk '{print $1" "$NF}'
which will return a list of file names and their permissions. save it somewhere, and once you're done - restore (chmod) each file's permissions.