LSATTR(1)

โœจ LSATTR(1) โœจ

okay bestie, gather round, because today we're learning about lsattr โ€” that's the General Commands Manual girlie, and she's here to spill all the tea on your file attributes ๐Ÿ’…


๐ŸŒธ NAME ๐ŸŒธ

lsattr โ€” list ext2/ext3/ext4 file attributes ๐Ÿฆ‹


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

lsattr [ -RVadlpv ] [ files...  ]

๐Ÿ’– DESCRIPTION ๐Ÿ’–

so basically? lsattr lists the file attributes on an ext2/ext3/ext4 file system. that's it. that's the whole vibe โœจ

and if you're sitting there like "bestie what do these attributes even mean" โ€” no worries, go read chattr(1), it has the full description of the attributes and what they do. iykyk ๐Ÿซถ


๐Ÿ‘‘ OPTIONS ๐Ÿ‘‘

  • -R โ€” Recursively list attributes of directories and their contents. like, it goes in. all the way in. ๐ŸŒˆ
  • -V โ€” Display the program version. main character energy, she wants you to know which version she is ๐Ÿ’…
  • -a โ€” List all files in directories, including files that start with . โ€” yes, even the shy hidden ones ๐Ÿซฃ
  • -d โ€” List directories like other files, rather than listing their contents. so instead of opening the folder and snooping around, she just tells you about the folder itself. iconic behaviour honestly ๐ŸŽ€
  • -l โ€” Print the options using long names instead of single character abbreviations. because sometimes a just isn't enough info, you know? spell it out for me ๐Ÿ“
  • -p โ€” List the file's project number. project number reveal!! ๐Ÿ”ฅ
  • -v โ€” List the file's version/generation number. her age. her era. her lore โญ

๐Ÿงš AUTHOR ๐Ÿงš

lsattr was written by Remy Card <Remy.Card@linux.org>. and it is currently being maintained by Theodore Ts'o <tytso@alum.mit.edu>. shoutout to the legends, no cap ๐Ÿ™Œ


๐Ÿ’€ BUGS ๐Ÿ’€

There are none :-).

literally not a single one. flawless. perfect. unbothered. we love to see it ๐Ÿ˜ญ๐Ÿ’–


๐ŸŒŸ AVAILABILITY ๐ŸŒŸ

lsattr is part of the e2fsprogs package and is available from http://e2fsprogs.sourceforge.net. go get her ๐Ÿ›๏ธโœจ


๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹


and that's the whole page bestie!! ๐ŸŽ€

this was brought to you by E2fsprogs version 1.47.4, dated March 2025 โ€” so you know she's fresh, she's current, she's thriving ๐Ÿ’…โœจ mwah, love u, go list some attributes ๐Ÿซถ๐Ÿ’–

๐Ÿ“ฆ where this page comes from