Bash script Change folder Permissions Recursively
In my post, How to use Bash script Change to folder Permissions Recursively. For example, To change all folder and file under huuphan.com folder. To list tree file and folder under huuphan.com folder [root@huupv huupv]# tree huuphan.com/ huuphan.com/ ├── a │ ├── abc.txt │ └── b │ └── c └── K 4 directories, 1 file To use find command list all file and folder under huuphan.com folder [root@huupv huupv]# find /home/huupv/huuphan.com -type d -exec ls -ld {} + >chown_folder.txt To use cat command read chown_folder.txt file [root@huupv huupv]# cat chown_folder.txt The content in chown_folder.txt file file as below: drwxrwxr-x. 4 huupv huupv 4096 Mar 9 22:38 /home/huupv/huuphan.com drwxrwxr-x. 3 huupv huupv 4096 Mar 9 22:38 /home/huupv/huuphan.com/a drwxrwxr-x. 3 huupv huupv 4096 Mar 9 22:37 /home/huupv/huuphan.com/a/b drwxrwxr-x. 2 huupv huupv 4096 Mar 9 22:37 /home/huupv/huuphan.com/a/b/c drwxrwxr-x. 2 huupv huupv 4096 Mar 9 22:38 /home