Easy and Simple Solution

Wednesday, May 26, 2021

find and set read only file in linux

2 comments

Below command will help to find everything in /var/www/html and set to read-only.

find /var/www/html -iname "*" -print0 | xargs -I {} -0 chattr +i {}

2 comments :

  1. "Linux has two sections, they incorporate the Kernel referenced already, and by and large it will likewise incorporate a graphical UI, https://onohosting.com/

    ReplyDelete