lsattr Linux Commands
What is Linux lsattr Command?
lsattr COMMAND:lsattr command is used to list the attributes of the specified file or directory.
||Recursively list attributes of directories and their contents.
||List all files in directories, including files that start with `.'.
||List directories like other files, rather than listing their contents.
- List attributes:
Lists the attributes of the current directory.
- Set the attribute:
chattr +i test.txt
Set the attribute for 'test.txt' file.
Lists the attributes of the 'test.txt' file.