Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Kitty Hooch

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
Copyright Info
Terms of Use
Privacy Info
Masthead / Impressum
Your Account

Private Messages

News Archive
Submit News
User Articles
Web Links


The Web

Who's Online
There are currently, 72 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here




       attr [ -LRq ] -s attrname [ -V attrvalue ] pathname

       attr [ -LRq ] -g attrname pathname

       attr [ -LRq ] -r attrname pathname


       Extended  attributes  implement  the ability for a user to
       attach name:value pairs to objects within the XFS filesys­

       They  could  be  used  to store meta-information about the
       file.  For example "character-set=kanji" could tell a doc­
       ument browser to use the Kanji character set when display­
       ing that document  and  "thumbnail=..."  could  provide  a
       reduced  resolution  overview of a high resolution graphic

       This document describes the attr command, which is  mostly
       compatible  with the IRIX command of the same name.  It is
       thus aimed specifically at users of the XFS  filesystem  -
       for  filesystem  independent  extended attribute manipula­
       tion, consult the getfattr(1) and  setfattr(1)  documenta­

       In the XFS filesystem, the names can be up to 256 bytes in
       length, terminated by the first 0  byte.   The  intent  is
       that  they  be  printable  ASCII  (or other character set)
       names for the attribute.  The values can be up to 64KB  of
       arbitrary binary data.

       Attributes  can  be  attached  to all types of XFS inodes:
       regular files, directories, symbolic links, device  nodes,

       XFS  uses 2 disjoint attribute name spaces associated with
       every filesystem object.   They  are  the  root  and  user
       address spaces.  The root address space is accessable only
       to the superuser, and then only by specifying a flag argu­
       ment to the function call.  Other users will not see or be
       able to modify attributes in the root address space.   The
       user address space is protected by the normal file permis­
       sions mechanism, so the owner of the file can  decide  who
       is  able  to  see and/or modify the value of attributes on
       any particular file.


       The attr  utility  allows  the  manipulation  of  extended
       attributes  associated with filesystem objects from within
       shell scripts.

              The -s attrname option tells attr to set the  named
              attribute  of  the  object  to  the value read from
              ssttddiinn.  If an  attribute  with  that  name  already
              exists,  its  value will be replaced with this one.
              If an attribute with that  name  does  not  already
              exist,  one  will be created with this value.  With
              the -V attrvalue flag, the attribute will be set to
              have  a  value  of  attrvalue and ssttddiinn will not be
              read.  With the -q flag, ssttddoouutt will not  be  used.
              Without   the   -q  flag,  a  message  showing  the
              attribute  name  and  the  entire  value  will   be

       When the -L option is given and the named object is a sym­
       bolic link, operate on the attributes of the object refer­
       enced  by the symbolic link.  Without this option, operate
       on the attributes of the symbolic link itself.

       When the -R option is given and the process has  appropri­
       ate  privileges,  operate  in the root attribute namespace
       rather that the USER attribute namespace.

       When the -q option is given attr will try to  keep  quiet.
       It  will  output  error  messages (to ssttddeerrrr) but will not
       print status messages (to ssttddoouutt).


       The standard file interchange/archive programs tar(1), and
       cpio(1)  will  not archive or restore extended attributes,
       while the xfsdump(8) program will.


       The list option present in the IRIX version of  this  com­
       mand  is  not supported.  getfattr provides a mechanism to
       retrieve all of the attribute names.


       getfattr(1),   setfattr(1),   attr_get(3),    attr_set(3),
       attr_multi(3), attr_remove(3), attr(5), and xfsdump(8).

Dec 2001               Extended Attributes                ATTR(1)



Security Code
Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!

Amazon Wish List

Did You Know?
You can help in many different ways.


Tell a Friend About Us

Bookmark and Share

Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.09 Seconds