Linux - Linux find files and change permission in directory, Find files in directory and change permission
Linux find files and change permission in directory
How to change permission for only files in directory?How to list only files in directory?
The below command will list only files and not direcrories in the folder.
# ls -l | grep -v \'drwx\'This will help to list only files and change permission for files. this can be done by using find command too.
# ls -l | grep -v \'drwx\' | awk \'{print $9}\'
# ls -l | grep -v \'drwx\' | awk \'{print $9}\' | xargs chmod 644
The topic on Linux - Linux find files and change permission in directory is posted by - Leon
Hope you have enjoyed, Linux - Linux find files and change permission in directoryThanks for your time