The following shows a command line session with lsattr
command which helps in listing file attributes.
root>(time lsattr ) &>> lsattr-with-time.txt
root>cat lsattr-with-time.txt
lsattr: Inappropriate ioctl for device While reading flags on ./sys
lsattr: Inappropriate ioctl for device While reading flags on ./dev
lsattr: Operation not supported While reading flags on ./initrd.img
lsattr: Inappropriate ioctl for device While reading flags on ./run
lsattr: Inappropriate ioctl for device While reading flags on ./proc
lsattr: Operation not supported While reading flags on ./vmlinuz
-------------e-- ./libx32
-------------e-- ./media
-------------e-- ./tmp
-------------e-- ./var
-------------e-- ./lsattr-with-time.txt
----------I--e-- ./etc
-------------e-- ./bin
-------------e-- ./boot
-------------e-- ./root
-------------e-- ./lib64
-------------e-- ./opt
-------------e-- ./build
-------------e-- ./selinux
-------------e-- ./mnt
-------------e-- ./lost+found
-------------e-- ./usr
-------------e-- ./lib
-------------e-- ./srv
-------------e-- ./home
----------I--e-- ./sbin
real 0m0.062s
user 0m0.000s
sys 0m0.000s
root>
The 'I' attribute is used by the htree code to indicate that a directory is being indexed using hashed trees. It may not be set or reset using chattr, although it can be displayed by lsattr.
The 'e' attribute indicates that the file is using extents for mapping the blocks on disk.
Like this:
Like Loading...