<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>http://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Comandos_de_la_terminal%2Flsattr</id>
	<title>Comandos de la terminal/lsattr - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Comandos_de_la_terminal%2Flsattr"/>
	<link rel="alternate" type="text/html" href="http://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/lsattr&amp;action=history"/>
	<updated>2026-05-19T00:26:48Z</updated>
	<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
	<generator>MediaWiki 1.32.1</generator>
	<entry>
		<id>http://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/lsattr&amp;diff=5401&amp;oldid=prev</id>
		<title>Rrc en 18:01 30 abr 2014</title>
		<link rel="alternate" type="text/html" href="http://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/lsattr&amp;diff=5401&amp;oldid=prev"/>
		<updated>2014-04-30T18:01:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
* [[:#lsattr| lsattr]]&lt;br /&gt;
&lt;br /&gt;
== lsattr ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr usr]# lsattr --help&lt;br /&gt;
lsattr: invalid option -- &amp;#039;-&amp;#039;&lt;br /&gt;
Usage: lsattr [-RVadlv] [files...]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ATTRIBUTES:&lt;br /&gt;
&lt;br /&gt;
       When a file with the &amp;#039;A&amp;#039; attribute set is accessed, its atime record is&lt;br /&gt;
       not modified.  This avoids a certain amount of disk I/O for laptop sys‐&lt;br /&gt;
       tems.&lt;br /&gt;
&lt;br /&gt;
       A  file  with the `a&amp;#039; attribute set can only be open in append mode for&lt;br /&gt;
       writing.   Only   the   superuser   or   a   process   possessing   the&lt;br /&gt;
       CAP_LINUX_IMMUTABLE capability can set or clear this attribute.&lt;br /&gt;
&lt;br /&gt;
       A  file  with  the `c&amp;#039; attribute set is automatically compressed on the&lt;br /&gt;
       disk by the kernel.  A read from this file returns  uncompressed  data.&lt;br /&gt;
       A  write  to this file compresses data before storing them on the disk.&lt;br /&gt;
       Note: please make sure to read the bugs and limitations section at  the&lt;br /&gt;
       end of this document.&lt;br /&gt;
&lt;br /&gt;
       A  file with the &amp;#039;C&amp;#039; attribute set will not be subject to copy-on-write&lt;br /&gt;
       updates.  This flag is only supported on  file  systems  which  perform&lt;br /&gt;
       copy-on-write.   (Note: For btrfs, the &amp;#039;C&amp;#039; flag should be set on new or&lt;br /&gt;
       empty files.  If it is set on a file which already has data blocks,  it&lt;br /&gt;
       is undefined when the blocks assigned to the file will be fully stable.&lt;br /&gt;
       If the &amp;#039;C&amp;#039; flag is set on a directory, it will have no  effect  on  the&lt;br /&gt;
       directory,  but  new  files  created  in that directory will the No_COW&lt;br /&gt;
       attribute.)&lt;br /&gt;
&lt;br /&gt;
       When a directory with the `D&amp;#039; attribute set is  modified,  the  changes&lt;br /&gt;
       are  written  synchronously  on  the  disk;  this  is equivalent to the&lt;br /&gt;
       `dirsync&amp;#039; mount option applied to a subset of the files.&lt;br /&gt;
&lt;br /&gt;
       A file with the `d&amp;#039; attribute set is not candidate for backup when  the&lt;br /&gt;
       dump(8) program is run.&lt;br /&gt;
&lt;br /&gt;
       The  &amp;#039;E&amp;#039;  attribute  is used by the experimental compression patches to&lt;br /&gt;
       indicate that a compressed file has a compression error.  It may not be&lt;br /&gt;
       set  or  reset  using  chattr(1),  although  it  can  be  displayed  by&lt;br /&gt;
       lsattr(1).&lt;br /&gt;
&lt;br /&gt;
       The &amp;#039;e&amp;#039; attribute indicates that the file is using extents for  mapping&lt;br /&gt;
       the blocks on disk.  It may not be removed using chattr(1).&lt;br /&gt;
&lt;br /&gt;
       The  &amp;#039;I&amp;#039;  attribute is used by the htree code to indicate that a direc‐&lt;br /&gt;
       tory is being indexed using hashed trees.  It may not be set  or  reset&lt;br /&gt;
       using chattr(1), although it can be displayed by lsattr(1).&lt;br /&gt;
&lt;br /&gt;
       The  &amp;#039;h&amp;#039; attribute indicates the file is storing its blocks in units of&lt;br /&gt;
       the filesystem blocksize instead of in units of sectors, and means that&lt;br /&gt;
       the file is (or at one time was) larger than 2TB.  It may not be set or&lt;br /&gt;
       reset using chattr(1), although it can be displayed by lsattr(1).&lt;br /&gt;
&lt;br /&gt;
       A file with the `i&amp;#039; attribute cannot be modified: it cannot be  deleted&lt;br /&gt;
       or  renamed,  no  link  can  be created to this file and no data can be&lt;br /&gt;
       written to the file.  Only the superuser or a  process  possessing  the&lt;br /&gt;
       CAP_LINUX_IMMUTABLE capability can set or clear this attribute.&lt;br /&gt;
&lt;br /&gt;
       A  file  with the `j&amp;#039; attribute has all of its data written to the ext3&lt;br /&gt;
       journal before being written to the file itself, if the  filesystem  is&lt;br /&gt;
       mounted  with the &amp;quot;data=ordered&amp;quot; or &amp;quot;data=writeback&amp;quot; options.  When the&lt;br /&gt;
       filesystem is mounted with the &amp;quot;data=journal&amp;quot; option all file  data  is&lt;br /&gt;
       already  journalled  and  this attribute has no effect.  Only the supe‐&lt;br /&gt;
       ruser or a process possessing the CAP_SYS_RESOURCE capability  can  set&lt;br /&gt;
       or clear this attribute.&lt;br /&gt;
&lt;br /&gt;
       When  a  file  with  the  `s&amp;#039;  attribute set is deleted, its blocks are&lt;br /&gt;
       zeroed and written back to the disk.  Note: please make  sure  to  read&lt;br /&gt;
       the bugs and limitations section at the end of this document.&lt;br /&gt;
&lt;br /&gt;
       When  a  file  with  the `S&amp;#039; attribute set is modified, the changes are&lt;br /&gt;
       written synchronously on the disk; this is  equivalent  to  the  `sync&amp;#039;&lt;br /&gt;
       mount option applied to a subset of the files.&lt;br /&gt;
&lt;br /&gt;
       A  directory  with  the  &amp;#039;T&amp;#039;  attribute will be deemed to be the top of&lt;br /&gt;
       directory hierarchies for the purposes of the  Orlov  block  allocator.&lt;br /&gt;
       This  is  a  hint to the block allocator used by ext3 and ext4 that the&lt;br /&gt;
       subdirectories under this directory are not related, and thus should be&lt;br /&gt;
       spread  apart  for allocation purposes.   For example it is a very good&lt;br /&gt;
       idea to  set  the  &amp;#039;T&amp;#039;  attribute  on  the  /home  directory,  so  that&lt;br /&gt;
       /home/john  and  /home/mary are placed into separate block groups.  For&lt;br /&gt;
       directories where this attribute is not set, the Orlov block  allocator&lt;br /&gt;
       will try to group subdirectories closer together where possible.&lt;br /&gt;
&lt;br /&gt;
       A file with the &amp;#039;t&amp;#039; attribute will not have a partial block fragment at&lt;br /&gt;
       the end of the file merged with  other  files  (for  those  filesystems&lt;br /&gt;
       which  support  tail-merging).  This is necessary for applications such&lt;br /&gt;
       as LILO which read the filesystem directly, and which don&amp;#039;t  understand&lt;br /&gt;
       tail-merged files.  Note: As of this writing, the ext2 or ext3 filesys‐&lt;br /&gt;
       tems do not (yet, except in very experimental  patches)  support  tail-&lt;br /&gt;
       merging.&lt;br /&gt;
       When  a  file  with  the `u&amp;#039; attribute set is deleted, its contents are&lt;br /&gt;
       saved.  This allows the user to ask for its undeletion.   Note:  please&lt;br /&gt;
       make  sure  to read the bugs and limitations section at the end of this&lt;br /&gt;
       document.&lt;br /&gt;
&lt;br /&gt;
       The &amp;#039;X&amp;#039; attribute is used by the experimental  compression  patches  to&lt;br /&gt;
       indicate  that  a  raw  contents  of  a compressed file can be accessed&lt;br /&gt;
       directly.  It currently may  not  be  set  or  reset  using  chattr(1),&lt;br /&gt;
       although it can be displayed by lsattr(1).&lt;br /&gt;
&lt;br /&gt;
       The  &amp;#039;Z&amp;#039;  attribute  is used by the experimental compression patches to&lt;br /&gt;
       indicate a compressed file is dirty.  It may not be set or reset  using&lt;br /&gt;
       chattr(1), although it can be displayed by lsattr(1).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr dev]# cd /usr/&lt;br /&gt;
[root@Llawyr usr]# lsattr -V&lt;br /&gt;
lsattr 1.42.9 (28-Dec-2013)&lt;br /&gt;
----------I--e-- ./lib&lt;br /&gt;
----------I--e-- ./libexec&lt;br /&gt;
-------------e-- ./src&lt;br /&gt;
-------------e-- ./uclibc&lt;br /&gt;
-------------e-- ./games&lt;br /&gt;
-------------e-- ./X11R6&lt;br /&gt;
----------I--e-- ./share&lt;br /&gt;
-------------e-- ./etc&lt;br /&gt;
----------I--e-- ./bin&lt;br /&gt;
----------I--e-- ./lib64&lt;br /&gt;
----------I--e-- ./include&lt;br /&gt;
-------------e-- ./local&lt;br /&gt;
----------I--e-- ./sbin&lt;br /&gt;
lsattr: Operation not supported While reading flags on ./tmp&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr usr]# rpm -qf $( which lsattr )&lt;br /&gt;
e2fsprogs-1.42.9-2.mga4&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr usr]# lsattr -R uclibc/&lt;br /&gt;
-------------e-- uclibc/lib64&lt;br /&gt;
&lt;br /&gt;
uclibc/lib64:&lt;br /&gt;
-------------e-- uclibc/lib64/librt-0.9.33.2.so&lt;br /&gt;
lsattr: Operation not supported While reading flags on uclibc/lib64/libdl.so.0.9.33&lt;br /&gt;
lsattr: Operation not supported While reading flags on uclibc/lib64/libcrypt.so.0.9.33&lt;br /&gt;
-------------e-- uclibc/lib64/libuClibc-0.9.33.2.so&lt;br /&gt;
-------------e-- uclibc/lib64/ld64-uClibc-0.9.33.2.so&lt;br /&gt;
lsattr: Operation not supported While reading flags on uclibc/lib64/ld64-uClibc.so.0.9.33&lt;br /&gt;
lsattr: Operation not supported While reading flags on uclibc/lib64/libpthread.so.0.9.33&lt;br /&gt;
lsattr: Operation not supported While reading flags on uclibc/lib64/libnsl.so.0.9.33&lt;br /&gt;
lsattr: Operation not supported While reading flags on uclibc/lib64/libresolv.so.0.9.33&lt;br /&gt;
lsattr: Operation not supported While reading flags on uclibc/lib64/libm.so.0.9.33&lt;br /&gt;
-------------e-- uclibc/lib64/libm-0.9.33.2.so&lt;br /&gt;
-------------e-- uclibc/lib64/libnsl-0.9.33.2.so&lt;br /&gt;
lsattr: Operation not supported While reading flags on uclibc/lib64/librt.so.0.9.33&lt;br /&gt;
-------------e-- uclibc/lib64/libresolv-0.9.33.2.so&lt;br /&gt;
lsattr: Operation not supported While reading flags on uclibc/lib64/libutil.so.0.9.33&lt;br /&gt;
-------------e-- uclibc/lib64/libpthread-0.9.33.2.so&lt;br /&gt;
-------------e-- uclibc/lib64/libcrypt-0.9.33.2.so&lt;br /&gt;
lsattr: Operation not supported While reading flags on uclibc/lib64/libc.so.0.9.33&lt;br /&gt;
-------------e-- uclibc/lib64/libutil-0.9.33.2.so&lt;br /&gt;
-------------e-- uclibc/lib64/libdl-0.9.33.2.so&lt;br /&gt;
&lt;br /&gt;
-------------e-- uclibc/usr&lt;br /&gt;
&lt;br /&gt;
uclibc/usr:&lt;br /&gt;
-------------e-- uclibc/usr/lib64&lt;br /&gt;
&lt;br /&gt;
uclibc/usr/lib64:&lt;br /&gt;
lsattr: Operation not supported While reading flags on uclibc/usr/lib64/libz.so&lt;br /&gt;
-------------e-- uclibc/usr/lib64/libz.so.1.2.8&lt;br /&gt;
lsattr: Operation not supported While reading flags on uclibc/usr/lib64/libz.so.1&lt;br /&gt;
-------------e-- uclibc/usr/lib64/libz.a&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr usr]# lsattr -Rd uclibc/&lt;br /&gt;
-------------e-- uclibc/&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr usr]# lsattr -Rdv uclibc/&lt;br /&gt;
18446744073249670045 -------------e-- uclibc/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Comandos de la terminal]]&lt;/div&gt;</summary>
		<author><name>Rrc</name></author>
		
	</entry>
</feed>