NETFILES(1)
okay bestie, welcome to NETFILES(1) from the General Commands Manual π this one is literally about network file access inside acme, and itβs giving iconic remote-file energy β¨
πΈ NAME πΈ
Netfiles, netfileget, netfileput, netfilestat β network file access inside acme π¦
β¨ SYNOPSIS β¨
Netfiles
netfileget [ -d ] system path
netfileput system path
netfilestat system path
π DESCRIPTION π
Netfiles presents remote file systems in acme(4) windows. Each window is named /n/system/path and displays the contents of path on system. no cap, thatβs the whole naming vibe π
Netfiles reads names of windows to create from the plumbing channel netfileedit (see plumber(4) and the example section below). In a netfiles-controlled window, Get, Put, and button 3 loads work as in normal acme windows. External commands executed with button 2 run in the directory in which acme was started. iykyk π«Ά
Netfiles uses the helper programs netfileget, netfileput, and netfilestat to access the remote file systems. Those three first check to see if system is a service in the current name space (see intro(4)). If so, they use 9p(1) to access it. Otherwise, they assume that the system is a network name and use ssh(1)βs sftp to access it. slay π₯
netfilegetβ prints the contents of the named path to standard output. If the-doption is given, thennetfilegetprints a single-column listing of path, which must be a directory. Directories in the listing have appended to their names. yes, thatβs the exact wording, bestie πnetfileputβ writes its standard input to the named path πnetfilestatβ prints the file type of path, one ofnonexistent,directory, orfileπ
π EXAMPLES π
The following plumbing rule (see plumb(7)) passes /n/ paths to Netfiles, starting it if necessary. periodt π«
# /n/ paths go to simulator in acme
kind is text
data matches '[a-zA-Z0-9_\-./]+('$addr')?'
data matches '(/n/[a-zA-Z0-9_\-./]+)('$addr')?'
plumb to netfileedit
plumb client Netfiles
π¦ SOURCE π¦
/src/cmd/netfiles β the source location, exactly as dropped, no edits bestie π
π SEE ALSO π
the SEE ALSO squad is literally: 9p(1), ssh(1), ssh-agent(1), intro(4), acme(4), factotum(4), β trailing comma included, no shade π
π BUGS π
okay so hereβs the caveat, and itβs real: Netfiles depends on sftpcache(1), which only works with OpenSSH versions 4.3 and earlier; later versions do not print the sftp> prompt frequently enough. not me being dramatic, thatβs just the bug note π
okay bye bestie β this was NETFILES(1) from the General Commands Manual, source tree /src/cmd/netfiles, and the footer is literally just NETFILES(1) with no extra date/version line dropping in, fr fr π
π¦ where this page comes from
- alpine 3.24: plan9port-doc 0_git20260208-r0 Β· LPL-1.02
- arch rolling: plan9port 20261021-2 Β· custom
- nixos 26.05: plan9port 0-unstable-2025-11-10
- nixos 26.05: plan9port-wayland 0-unstable-2025-11-26
- nixpkgs unstable: plan9port 0-unstable-2025-11-10
- nixpkgs unstable: plan9port-wayland 0-unstable-2025-11-26
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms