lsattr(1) - man - phpman

Look up a command

 

Markdown Format | JSON API | MCP Server Tool | Cheat Sheet


TLDR: lsattr (tldr-pages)

List file attributes on a Linux filesystem.

  • 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 current directory, including hidden ones
    lsattr -a
  • Display attributes of directories in the current directory
    lsattr -d
LSATTR(1)                              General Commands Manual                             LSATTR(1)



NAME
       lsattr - list file attributes on a Linux second extended file system

SYNOPSIS
       lsattr [ -RVadlpv ] [ files...  ]

DESCRIPTION
       lsattr  lists  the file attributes on a second extended file system.  See chattr(1) for a de‐
       scription of the attributes and what they mean.

OPTIONS
       -R     Recursively list attributes of directories and their contents.

       -V     Display the program version.

       -a     List all files in directories, including files that start with `.'.

       -d     List directories like other files, rather than listing their contents.

       -l     Print the options using long names instead of single character abbreviations.

       -p     List the file's project number.

       -v     List the file's version/generation number.

AUTHOR
       lsattr was written by Remy Card <Remy.Card AT linux.org>.  It is currently being  maintained  by
       Theodore Ts'o <tytso AT alum.edu>.

BUGS
       There are none :-).

AVAILABILITY
       lsattr  is  part  of  the  e2fsprogs  package  and is available from http://e2fsprogs.source‐
       forge.net.

SEE ALSO
       chattr(1)



E2fsprogs version 1.46.5                    December 2021                                  LSATTR(1)

Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 14:29 @216.73.216.151 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!