diodcli(8)
π¦ 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 inIP[:PORT],HOST[:PORT], or/path/to/socketform (defaultlocalhost:564).-m,--msize SIZEβ the maximum request size including 9P headers (default65536).-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 of512-1023, available to root only. this can be used in conjunction with theprivportexport 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 compatiblestat(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-timeis 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
- nixos 26.05: diod 1.1.0
- nixpkgs unstable: diod 1.1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms