GFAL-LS(1)

🌸 GFAL-LS(1) β€” the "what's in this directory tho" manual 🌸

okay bestie, welcome to the gfal-ls page from the General Commands Manual β€” yes that manual, the fancy one ✨


✨ NAME ✨

gfal-ls β€” list directory contents or file information. that's it, that's the job πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

gfal-ls [ OPTION ]...  FILE

πŸ’– DESCRIPTION πŸ’–

so gfal-ls lists info about the file, periodt. Depending on the implementation, some info from the long listing β€” like group and user ids β€” might not be available, and in that case it just shows up as 0 🫠 no drama.

⚠️ real talk though: when you're listing several files or directories, if one of them returns an error, the execution is canceled. the whole thing. gone. so keep that in mind bestie 😭

πŸŽ€ OPTIONS πŸŽ€

  • -h, --help β€” shows help about the command. classic, iconic 🫢
  • -V, --version β€” spits out version information and exits. bye πŸ‘‹
  • -v, --verbose β€” verbose mode. repeat it up to 3 times for the most verbose mode, aka main character energy.
  • -D, --definition DEFINITION β€” define properties for gfal2. Definitions have this syntax: "CONFIG_GROUP:KEY=VALUE" β€” yes, exactly like that, no cap.
  • -t, --timeout TIMEOUT β€” 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. so it's a lil generous, we love that πŸ’–
  • -E, --cert CERT β€” user certificate. (this option only takes effect after the X509_USER_PROXY environment variable and the default /tmp/x509up_u`id -u` location cannot provide a certificate β€” iykyk)
  • --key KEY β€” 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-info CLIENT_INFO β€” provide custom client-side information. 🫢
  • --log-file LOG_FILE β€” write Gfal2 library logs to the given file location. receipts, but for logs πŸ“
  • -a, --all β€” don't hide files with a name starting in . β€” yes we're showing the hidden ones, we're nosy and that's valid 🌸
  • -l, --long β€” long listing format. these columns get displayed for each entry: mode, number of links, group id, user id, last modification time, size and name. the full serve πŸ’…
  • -d, --directory β€” list directory entries instead of its contents. so you see the folder itself, not what's inside it πŸ™ˆ
  • -H, --human-readable β€” with -l, print sizes in human readable format (e.g.: 1K, 234M, 2G). we love numbers we can actually read ✨
  • --xattr XATTR β€” with -l, query additional attributes. can be specified multiple times. stack 'em up 🧚
  • --time-style STYLE β€” specify the time style. supports these values: locale, iso, long-iso or full-iso (partially). note the "partially", bestie, don't come for me πŸ‘‘
  • --full-time β€” equivalent to --time-style=full-iso. it's giving the same thing.
  • --color MODE β€” with -l, enable or disable color output. supports these values: always, never, auto. pick your vibe 🌈

πŸ”₯ EXAMPLES πŸ”₯

Long listing of all files:

gfal-ls -laH srm://endpoint.cern.ch/path/file

List a directory instead of its contents:

gfal-ls -d file:///tmp

🌟 FILES 🌟

  • /etc/gfal2.d/* β€” all configuration files in this directory affect the behavior of the underlying gfal2. yes, all of them, they're running the show πŸ’œ

πŸ‘‘ AUTHORS πŸ‘‘

the literal icons who made this happen:

  • 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, go say hi:

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)


and that's the whole page, bestie ✨ this was v1.7.1, dated March 2022 β€” slay, stay hydrated, and may all your listings return zero errors πŸ’–πŸ¦‹πŸŒΈ