Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

chattr

Synopsis

chattr [options] mode files

Modify file attributes. Specific to Linux Second and Third Extended Filesystems (ext2 and ext3). Like symbolic chmod, chattr specifies attributes with +, -, and = but it operates on extended file attributes (see the upcoming section Attributes). mode is in the form opcode attribute. See also lsattr.

Options

-R

Modify directories and their contents recursively.

-f

Suppress most error messages.

-V

Verbose; print modes of attributes after changing them.

-v version

Set the file’s version.

Opcodes

+

Add attribute.

-

Remove attribute.

=

Assign attributes (removing unspecified attributes).


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint