Risposte:
Il comando che stai cercando è
lsattr -R /directory/to/be/searched
Dal manuale di Linux ( man lsattr
) per lsattr
:
NAME
lsattr - list file attributes on a Linux second extended file system
SYNOPSIS
lsattr [ -RVadv ] [ files... ]
DESCRIPTION
lsattr lists the file attributes on a second extended file system. See
chattr(1) for a description of the attributes and what they mean.
OPTIONS
-R Recursively list attributes of directories and their contents.
Questo è l'output di questo comando, come utente non privilegiato, nella mia directory home.
$ lsattr -R | more
-------------e-- ./zz.txt
-------------e-- ./VirtualBox VMs
./VirtualBox VMs:
-------------e-- ./VirtualBox VMs/Ollie2
./VirtualBox VMs/Ollie2:
-------------e-- ./VirtualBox VMs/Ollie2/Ollie2.vbox
-------------e-- ./VirtualBox VMs/Ollie2/Ollie2.vbox-prev
-------------e-- ./VirtualBox VMs/Ollie2/Logs
./VirtualBox VMs/Ollie2/Logs:
-------------e-- ./VirtualBox VMs/Ollie2/Logs/VBox.log
-------------e-- ./VirtualBox VMs/Ollie2/Logs/VBox.log.1
-------------e-- ./VirtualBox VMs/Ollie2/Logs/VBox.log.2
-------------e-- ./VirtualBox VMs/Ollie2/Logs/VBox.log.3
-------------e-- ./VirtualBox VMs/Ollie2/Ollie2.vdi
-------------e-- ./VirtualBox VMs/JH
./VirtualBox VMs/JH:
-------------e-- ./VirtualBox VMs/JH/JH.vbox-prev
-------------e-- ./VirtualBox VMs/JH/JH.vbox
-------------e-- ./VirtualBox VMs/JH/JH.vdi
e così via.