GFAL-XATTR(1)
β¨ NAME β¨
gfal-xattr β bestie edition π
show or set attributes of a file
So like, this is gfal-xattr(1), one of the General Commands Manual girlies, and she does exactly one job but she does it so well. π«Ά
π SYNOPSIS π
gfal-xattr [ OPTION ]... FILE [ ATTRIBUTE [ = VALUE ]]
πΈ DESCRIPTION πΈ
gfal-xattr shows you the attributes of a file, or sets them to a brand new value. That's the whole vibe. π
And here's the cute part β this command comes in three forms, so for whatever file you point it at, you can:
- list all the attributes and their corresponding values,
- display the value of one particular attribute,
- or assign a new value to one particular attribute.
Not me giving you options, bestie. π Go look at the examples below if you want to see each form in the wild.
π OPTIONS π
-h,--helpβ show help about the command. Your girl is helpful fr fr.-V,--versionβ output version information and exit. Then she's gone, bye. π-v,--verboseβ verbose mode. Repeat it up to 3 times for the most verbose mode. Stack them like accessories. π-D,--definitionDEFINITION β define properties for gfal2. Definitions have this syntax:"CONFIG_GROUP:KEY=VALUE"β exact format, no improvising.-t,--timeoutTIMEOUT β global timeout for the execution of the command. The command gets interrupted if time expires before it finishes. > β οΈ Note: a grace period of 30 seconds is given to the global timeout. She's strict but she's not that strict.-E,--certCERT β user certificate. (This option takes effect only after theX509_USER_PROXYenvironment variable and the default`/tmp/x509up_u`id -u`location cannot provide a certificate) β so she's the backup plan, not the first choice. π--keyKEY β user private key.-4β forces Gfal2 to use IPv4 addresses only. (Option valid only for the GridFTP protocol)-6β forces Gfal2 to use IPv6 addresses only. (Option valid only for the GridFTP protocol)-C,--client-infoCLIENT_INFO β provide custom client-side information.--log-fileLOG_FILE β write Gfal2 library logs to the given file location.FILEβ file URI. The main character, honestly. πATTRIBUTEβ optional argument, specifying an attribute to get or set. If no attribute is given, all attributes and their corresponding values are displayed. Slay, no filter.VALUEβ if an attribute is given, a new value can optionally be assigned to it.
π¦ EXAMPLES π¦
Show all attributes and values of a file:
gfal-xattr srm://endpoint.cern.ch/path/file
Show the value of a particular attribute:
gfal-xattr srm://endpoint.cern.ch/path/file user.status
Set a new value to an attribute:
gfal-xattr srm://endpoint.cern.ch/path/file user.status=new_value
Typically, you can get the transport urls (turls) with the "user.replicas" attribute:
srm://endpoint.cern.ch/path/file user.replicas
Not me writinguser.status=new_valuewith zero spaces around the=β that's literally the syntax, bestie, don't @ me. π
π FILES π
/etc/gfal2.d/*β All configuration files in this directory affect the behavior of the underlying gfal2. So if something's acting up, it's giving... config files. π
π§ AUTHORS π§
The icons who made this happen, periodt:
- Duarte Meneses <duarte.meneses@cern.ch>
- Adrien Devresse <adrien.devresse@cern.ch>
- Alejandro Alvarez Ayllon <alejandro.alvarez.ayllon@cern.ch>
- Andrea Manzi <andrea.manzi@cern.ch>
- Mihai Patrascoiu <mihai.patrascoiu@cern.ch>
- Joao Lopes <joao.pedro.batista.lopes@cern.ch>
β SEE ALSO β
The whole friend group, iykyk:
gfal-cat(1), gfal-chmod(1), gfal-copy(1), gfal-ls(1), gfal-mkdir(1), gfal-rename(1), gfal-rm(1), gfal-save(1), gfal-stat(1), gfal-sum(1), gfal-token(1), gfal-xattr(1), gfal-evict(1), gfal-bringonline(1), gfal-archivepoll(1)
okay that's the whole page, bestie π This one's v1.7.1 from March 2022, and yeah she's been sitting in the General Commands Manual section this whole time like the iconic queen she is. Go get those attributes. β¨ππ¦
π¦ where this page comes from
- debian bookworm: gfal2-util-scripts 1.8.0-1 Β· Apache-2.0
- debian trixie: gfal2-util-scripts 1.9.0-2 Β· Apache-2.0
- epel 10: gfal2-util-scripts 1.9.1-1.el10_2 Β· Apache-2.0
- epel 9: gfal2-util-scripts 1.9.1-1.el9 Β· Apache-2.0
- nixos 26.05: python3.13-gfal2-util 1.9.1
- nixos 26.05: python3.14-gfal2-util 1.9.1
- nixpkgs unstable: python3.13-gfal2-util 1.9.1
- nixpkgs unstable: python3.14-gfal2-util 1.9.1
- ubuntu noble: gfal2-util-scripts 1.8.1-1 Β· Apache-2.0
- ubuntu questing: gfal2-util-scripts 1.9.0-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms