diff --git a/docs/userguide/en/attributes.html b/docs/userguide/en/attributes.html index 436d4e5331..15d8df1fe4 100644 --- a/docs/userguide/en/attributes.html +++ b/docs/userguide/en/attributes.html @@ -58,8 +58,11 @@
If you prefer to use the commandline or plan to work with many files using scripting, there are several commands for controlling attributes from Terminal:
-If you prefer to use the commandline or plan to work with many files using scripting, there are several commands for controlling attributes from Terminal.
+listattr lists a file's attributes, but doesn't show the contents of the attributes.
usage: listattr 'filename' ['filename' ...]
From our screenshot example above:
~/people ->listattr Clara\ Botters @@ -91,17 +94,21 @@ MIME String 21 "BEOS:TYPE"
BEOS:TYPE holds the file type as a MIME string, here "application/x-person. It determines the default icon and the application that opens the file when you e.g. double click it.
"_trk/pinfo_le" is the attribute with which Tracker keeps track of a file's icon position.
catattr displays the contents of a specific attribute of a file.
usage: catattr [--raw|-r] attr_name file1 [file2...]
Again our example:
~/people ->catattr META:city Clara\ Botters -Clara Botters : string : Whelton
addattr adds an attribute to a file and/or fills it with a value.
usage: addattr [-t type] attr value file1 [file2...]
or: addattr [-f value-from-file] [-t type] attr file1 [file2...]
@@ -110,22 +117,27 @@ Clara Botters : string : WheltonSo, say dear Clara took a job with the multi-national Barkelbaer Inc., you fill the formerly empty "Company" attribute with that data (which is of type "string"):
-~/people ->addattr -t string META:company Barkelbaer\ Inc. Clara\ Botters- -
~/people ->addattr -t string META:company Barkelbaer\ Inc. Clara\ Botters+ +
rmattr completely removes an attribute from a file.
usage: rmattr [-p] attr filename1 [filename2...]
'attr' is the name of an attribute of the file
If '-p' is specified, 'attr' is regarded as a pattern.
Though in all practicality it would be enough to just not fill the "Fax" attribute, you can completely remove it from Clara's file by typing:
-~/people ->rmattr META:fax Clara\ Botters
~/people ->rmattr META:fax Clara\ Botters+ +
copyattr copies attributes from one or more files to another. By default, the actual contents of the file is not copied.
Usage: copyattr <options> <source> [ ... ] <destination>-If you do want to copy the attributes plus the data of the file itself, you can add the option "-d" or "--data".
If you do want to copy the attributes plus the data of the file itself, you can add the option "-d" or "--data".
+More information on these commands and their options can be found by typing the command name followed by "-h" or "--help".