lsattr command line tool and its examples

  • About lsattr : To list file attributes on a Linux second extended file system
  • It comes from : “e2fsprogs-1.41.12” package.
  • Configuration Files:
  • Path: /usr/bin/lsattr

Examples:

1. To recursively list attributes of directories and their contents

$ lsattr -R

2. To display the program version

$ lsattr -V

3. To list all files in directories, including files that start with â.â

$ lsattr -a

4. To list directories like other files, rather than listing their contents

$ lsattr -d

5. To List the files version/generation number

$ lsattr -v

 

Leave a Reply

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