diodcli(8)

πŸ“¦ version 1.1.0, in nixos 26.05, nixpkgs unstable

πŸ¦‹ diodcli(8) β€” perform file operations by attaching directly to a diod server

okay bestie, this is the diodcli(8) page from the diod manual, and it's highkey giving β€œattach straight to the server and do file ops” energy. no cap. ✨


🌸 NAME 🌸

diodcli β€” perform file operations by attaching directly to a diod server. that's the whole name, and yes it ate.

✨ SYNOPSIS ✨

diodcli [OPTIONS] read PATH
diodcli [OPTIONS] write PATH
diodcli [OPTIONS] mkdir PATH
diodcli [OPTIONS] stat PATH
diodcli [OPTIONS] ls [--long] [PATH ...]
diodcli [OPTIONS] null
diodcli [OPTIONS] getxattr PATH NAME
diodcli [OPTIONS] setxattr [--create|--replace] PATH NAME VALUE
diodcli [OPTIONS] delxattr PATH NAME
diodcli [OPTIONS] showmount [--long]
diodcli [OPTIONS] date [--set-time]

πŸ’– DESCRIPTION πŸ’–

bestie, diodcli connects to a diod server, attaches to the mount point called aname, and performs a file operation. it's literally that simple β€” the rest is just picking your subcommand and flags. 🫢

πŸŽ€ OPTIONS πŸŽ€

these are the options that apply to all subcommands, periodt:

  • -a, --aname NAME β€” the file system name on the server (default "ctl"). lowkey note: the "ctl" synthetic file system must be explicitly exported. πŸ‘‘
  • -s, --server NAME β€” the server in IP[:PORT], HOST[:PORT], or /path/to/socket form (default localhost:564).
  • -m, --msize SIZE β€” the maximum request size including 9P headers (default 65536).
  • -u, --uid UID β€” try to attach to the server as the specified user (default your effective uid).
  • -p, --privport β€” connect from a socket bound to a port in the range of 512-1023, available to root only. this can be used in conjunction with the privport export option. πŸ”₯
  • -t, --trace β€” show 9P protocol on stderr.

🧚 SUBCOMMANDS 🧚

okay, now the main-character moves. pick one: πŸ’…

  • read β€” read a file and write to stdout.
  • write β€” read stdin to EOF and write to a file.
  • mkdir β€” create a directory.
  • stat β€” display file status. the compatible stat(1) format string is:
mode=%f owner=%u:%g size=%s blocks=%b blocksize=%o links=%h \
device=%t:%T mtime=%Y ctime=%Z atime=%X
  • ls β€” list directory contents.
  • null β€” once attached, do nothing. literally no thoughts, head empty. πŸ™ˆ
  • getxattr β€” get the value of an extended attribute.
  • setxattr β€” set the value of an extended attribute.
  • delxattr β€” remove an extended attribute.
  • showmount β€” list the server's connected clients. by default, the client list is compressed into one line in hostlist form, with domain suffixes removed. with --long, the clients are listed one per line, without compression or abbreviation. 🌈
  • date β€” show the server system time. if --set-time is specified, the local system time is updated to match the server's. this may be useful in a pre-boot environment prior to authenticating with MUNGE, to avoid running afoul of its replay attack prevention. ⭐

πŸ¦‹ SEE ALSO πŸ¦‹

  • diod (8) β€” go read the big one too, bestie. πŸ’œ

πŸ’– cute sign-off: this iconic page is from diod version 1.1.0; the footer doesn't list a date, so we're not making one up β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from