{"id":51,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=51"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"view-and-change-file-attributes","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=51","title":{"rendered":"View and change file attributes"},"content":{"rendered":"<p>In addition to the many standard Unix tools Be has included in \/boot\/beos\/bin, there are also a couple of custom tools that make it easy to view and change a file&#8217;s attributes.<br \/>\n To view a file&#8217;s attributes from the Terminal, type <b>listattr filename<\/b>.<br \/>\n However, this will only show you the byte size, name, and type of the attributes. It won&#8217;t show you its value (contents). To see contents, use the Tracker Add-On AttributeViewer. To add attributes to a file type <b>addattr fieldname value filename<\/b><br \/>\nFor example: addattr huey duey foobar will add an attribute named &#8222;huey&#8220; with a value of &#8222;duey&#8220; to a file called foobar. To remove attributes, use: rmattr fieldname filename. You can get more details on usage by typing <b>addattr &#8211;help<\/b> .<br \/>\n Better yet, check out the following shell scripts that use this and other commands to process multiple files&#8230;<br \/>\n email_conv &#8211; Email Conversion Package, at <br \/> <a HREF=\"http:\/\/www.box.net.au\/~jaq\/email_conv.zip\">http:\/\/www.box.net.au\/~jaq\/ema il_conv.zip<\/a><br \/> [Editor&#8217;s note: URL no longer functional].<br \/>\nPeople Porter, at<br \/> <a HREF=\"http:\/\/www.betips.net\/software\/\">http:\/\/www.betips.net\/software\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In addition to the many standard Unix tools Be has included in \/boot\/beos\/bin, there are also a couple of custom tools that make it easy to view and change a file&#8217;s attributes. To view a file&#8217;s attributes from the Terminal, type listattr filename. However, this will only show you the byte size, name, and type [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[11],"class_list":["post-51","post","type-post","status-publish","format-standard","hentry","tag-terminal"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=51"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/51\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}