diff --git a/pages/linux/lsattr.md b/pages/linux/lsattr.md new file mode 100644 index 0000000000..76a89a4af8 --- /dev/null +++ b/pages/linux/lsattr.md @@ -0,0 +1,23 @@ +# lsattr + +> List file attributes on a Linux file system. + +- Display the attributes of the files in the current directory: + +`lsattr` + +- List the attributes of files in a particular path: + +`lsattr {{path}}` + +- List file attributes recursively in the current and subsequent directories: + +`lsattr -R` + +- Show attributes of all the files in the directory, including hidden ones: + +`lsattr -a` + +- Display attributes of directories: + +`lsattr -d`