Linux – use find to output directories recursively with permissions

Go to the directory (or just add the dir to the path)

# sudo find ./ -type d -ls

To output it to a file:

# sudo find ./ -type d -ls > somefilename.txt

Another good reference:

Of course, there are other ways:

# sudo find / -type f -perm 0777
# sudo find / -type d -perm 0777

Write some files to review contents:

# sudo find /var/www/html -type f -perm 0777 > find777files.txt
# sudo find /var/www/html -type d -perm 0777 > find777dirs.txt

Check SMTP connections and output in real time

#sudo lsof -i | grep smtp

Add a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.