xrdfs(1)
πΈ xrdfs β the manual page, bestie edition π
okay so picture this: it's xrdfs(1), it lives in the General Commands Manual, and it is literally your go-to girl for xrootd file and directory meta-data. let's get into it π«Ά
β¨ NAME β¨
xrdfs β xrootd file and directory meta-data utility π
β¨ SYNOPSIS β¨
xrdfs [global-options] host[:port] [command [args]]
xrdfs [global-options] command [args containing complete URLs]
command: help, cache, chmod, ls, locate, mkdir, mv, stat, statvfs, query,
rm, rmdir, truncate, prepare, cat, tail, spaceinfo, xattr
two whole forms, bestie. pick your lane π
β¨ DESCRIPTION β¨
so xrdfs runs meta-data oriented operations (think ls, mv, rm, etc.) on one or more xrootd servers. the way it works:
- in batch mode, the endpoint can either be handed to you separately, before the command, or it gets inferred from complete URL path operands that come after the command.
- global options have to come first β before the endpoint or the command. no cutting the line π
- the server-first form and the command-first form are alternatives. you may not mix them. it's giving choose one, periodt.
- all complete URLs in one command gotta use the same scheme, user information, host, and effective port. and yes β an omitted default port compares equal to that same port written out explicitly. equality slay β¨
querystays server-first forever and always, because its implementation-dependent parameters might literally look like URLs themselves. it's not being difficult, it's just like that π- local
file://andstdio://operands are not remote endpoints and get straight up rejected in command-first form. not remote, not welcome π« - want command help? invoke
xrdfswith no command line options or parameters, wait for the input prompt, then type"help". iconic behaviour honestly π
β¨ OPTIONS β¨
-4,--ipv4β use only the IPv4 network stack and addresses. old school but make it work π-6,--ipv6β use only the IPv6 network stack and addresses. future forward bestie π-d,--debug levelβ set the debug level:0off,1low,2medium, or3high. 0 to 3, a whole mood scale π₯-h,--helpβ display help and exit. the classic. the icon. π--no-cwdβ do not preset a CWD in interactive mode. if you don't want a cwd, you simply don't get one π
β¨ EXAMPLES β¨
these server-first and command-first invocations are equivalent, no cap:
Server-first Command-first
xrdfs host stat /path xrdfs stat root://host//path
xrdfs host ls /dir xrdfs ls root://host//dir
xrdfs host mv /old /new xrdfs mv root://host//old root://host//new
and real quick, a lil URL lore for you π§ β in an XRootD URL, the double slash after the host is actually two things holding hands: the slash separating the authority from the path, plus the leading slash of the absolute path. a single slash is also accepted, and it gets normalized to an absolute command path. so it's flexible. we love a flexible queen π
β¨ COMMANDS β¨
chmod path <user><group><other>
modify permissions of the path. permission string example: rwxr-x--x π
ls [-l] [-u] [-R] [-D] [-Z] [-C] [dirname]
get directory listing. the flags, bestie:
-lstat every entry and print long listing-uprint paths as URLs-Rlist subdirectories recursively-Dshow duplicate entries-Zcheck if file is a ZIP archive and if yes list its content-Cchecksum every entry
locate [-n] [-r] [-d] [-m] [-i] [-p] <path>
get the locations of the path. flags:
-rrefresh, don't use cached locations-nmake the server return the response immediately even though it may be incomplete-ddo a recursive, deep locate in order to find data servers-mprefer host names to IP addresses-iignore network dependencies (IPv6/IPv4)-pbe passive: ignore tried/triedrc cgi opaque info
mkdir [-p] [-m<user><group><other>] <dirname>
creates a directory / tree of directories π³
-pcreate the entire directory tree recursively-m<user><group><other>permissions for newly created directories
mv <path1> <path2>
move path1 to path2 locally on the same server. local moves only, we're not shipping anything across servers π«
stat <path> [<paths>]
get info about the file(s) or directory(ies).
-q <flags>makesxrdfsreturn error code55to the shell if the requested flag combination is not present; flags may be combined together using'|'or'&'- available flags:
XBitSet,IsDir,Other,Offline,POSCPending,IsReadable,IsWriteable,BackUpExists
statvfs <path>
get info about a virtual file system πΎ
query <code> <params>
obtain server information. query codes:
config <what>β server configuration;<what>is one of the following:bind_maxβ the maximum number of parallel streamschksumβ the supported checksumpio_maxβ maximum number of parallel I/O requestsreadv_ior_maxβ maximum size of a readv elementreadv_iov_maxβ maximum number of readv entriestpcβ support for third party copieswan_portβ the port to use for wan copieswan_windowβ thewan_portwindow sizewindowβ the tcp window sizecmsβ the status of the cmsdroleβ the role in a clustersitenameβ the site nameversionβ the version of the server
checksumcancel <path>β file checksum cancellationchecksum <path>β file checksumopaque <arg>β implementation dependentopaquefile <arg>β implementation dependentspace <space>β logical space statsstats <what>β server stats;<what>is a list of letters indicating information to be returned:aβ all statisticspβ protocol statisticsbβ buffer usage statisticssβ scheduling statisticsdβ device polling statisticsuβ usage statisticsiβ server identificationzβ synchronized statisticslβ connection statistics
xattr <path>β extended attributesprepare <reqid> [filenames]β prepare request status
rm <filename> [<filenames>]
remove a file ποΈ
rmdir <dirname>
remove a directory π
truncate <filename> <length>
truncate a file βοΈ
prepare [-c] [-f] [-s] [-w] [-e] [-p priority] [-a requestid] filenames
prepare one or more files for access.
-cco-locate staged files if possible-frefresh file access time even if the location is known-sstage the files to disk if they are not online-wwhen files will be accessed for modification-p priorityβ priority of the request,0(lowest) β3(highest)-a requestidβ abort the request-eevict the file from disk cache
cat [-o localfile] files
print contents of one or more files to stdout π±
-o localfileβ print to the specified local file
tail [-c bytes] [-f] file
output last part of files to stdout.
-c num_bytesβ out lastnum_bytes-fβ output appended data as file grows
spaceinfo path
get space statistics for given path π
xattr <path> <code> <params>
operation on extended attributes. codes:
set <attr>β set extended attribute;<attr>is string of formname=valueget <name>β get extended attribute.del <name>β delete extended attribute.listβ list extended attributes.
β¨ RETURN CODES β¨
50: generic error (e.g. config, internal, data, OS) π51: socket related error52: postmaster related error53: XRootD related error54: redirection error55: query response was negative (this is not an error) β not an error bestie, breathe π«Ά
β¨ NOTES β¨
for the list of available environment variables, please refer to xrdcopy(1) π
β¨ DIAGNOSTICS β¨
errors yield an error message and a non-zero exit status. she tells you when something's wrong π
β¨ LICENSE β¨
LGPL π
β¨ SUPPORT LEVEL β¨
the xrdfs command is supported by the XRootD Collaboration. contact information can be found at
https://xrootd.org/contact.html
and that's the whole page, bestie π this is version v6.2.0 energy β go forth, ls, mv, rm responsibly, and remember: server-first or command-first, never both. mwah π
ππ¦
π¦ where this page comes from
- epel 10: xrootd-client 1:6.2.0-2.el10_3 Β· LGPL-3.0-or-later AND BSD-2-Clause AND BSD-3-Clause AND curl AND MIT AND Zlib AND Apache-2.0 AND MPL-2.0
- fedora 44: xrootd-client 1:6.2.0-2.fc44 Β· LGPL-3.0-or-later AND BSD-2-Clause AND BSD-3-Clause AND curl AND MIT AND Zlib AND Apache-2.0 AND MPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms