AFPARG(1)
Okay bestie, this is the afparg manual from the Netatalk AFP Fileserver Manual π, and it's giving main character energy β¨
β¨ Name β¨
afparg β send commands to an AFP server π¦
π Synopsis π
afparg [-1234567Vv] [-h host] [-p port] [-s volume] [-u user] [-w password] [-f command]
afparg -l
πΈ Description πΈ
okay so afparg is a super simple tool for sending commands to an AFP server as an authenticated user π It's so good for peeking at files on the server or doing trivial file operations, lowkey easy stuff but literally so useful π
Run afparg -l to see every available command and what arguments it wants π§
π Options π
-1β use the AFP 2.1 protocol version π-2β use the AFP 2.2 protocol version π-3β use the AFP 3.0 protocol version π-4β use the AFP 3.1 protocol version π-5β use the AFP 3.2 protocol version π-6β use the AFP 3.3 protocol version π-7β use the AFP 3.4 protocol version, which is the default β¨-f command argumentsβ the command you want to run π-h hostβ the server's hostname or IP address (default:localhost) π-lβ list the available commands and then exit πͺ-p portβ the server's port number (default:548) π-u userβ the username for logging in to the AFP server (default: currentuid) πββοΈ-vβ verbose output, so you get more details π£οΈ-Vβ very verbose output, the extra chatty option π’-w passwordβ the password for logging in to the AFP server π
π§ Configuration π§
heads up bestie β οΈ The test runner AFP client only supports the ClearTxt UAM right now. To set it up, configure the UAM in netatalk's afp.conf like this:
[Global]
uam list = uams_clrtxt.so
π Examples π
π List available commands and their arguments
$ afparg -l
FPResolveID CNID
FPEnumerate dir
FPCopyFile source dest
FPLockrw d | r file
FPLockw d | r file
β¨ Resolve a CNID to file name
$ afparg -h 10.0.0.8 -u myuser -w mypass -s "test volume" -f FPResolveID 18
======================
FPResolveID with args:
Trying to resolve id 18
Resolved ID 18 to: 'AFP_Reference.pdf'
π¦ List files inside of a directory on the shared volume
$ afparg -h 10.0.0.8 -u myuser -w mypass -s "test volume" -f FPEnumerate "my dir"
file1
file2
π Make a copy of a file on the shared volume
$ afparg -h 10.0.0.8 -u myuser -w mypass -s "test volume" -f FPCopyFile AFP_Reference.pdf AFP_Reference2.pdf
======================
FPCopyFile with args:
source: "AFP_Reference.pdf" -> dest: "AFP_Reference2.pdf"
π₯ Open a file's data fork with read/write lock
$ afparg -h 10.0.0.8 -u myuser -w mypass -s "test volume" -f FPLockrw d AFP_Reference2.pdf
======================
FPOpen with read/write lock
source: "AFP_Reference2.pdf"
π¦ See Also π¦
If you want more, check out afp_logintest(1), afp_spectest(1), and afpd(8) π
That's the tea β from Netatalk 4.5.1, bestie, and you're literally ready to go π«Άπ AFPARG(1) π
π¦ where this page comes from
- fedora 44: netatalk-afptest 5:4.5.1-1.fc44 Β· GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+ AND LicenseRef-Callaway-BSD AND FSFUL AND LicenseRef-Callaway-MIT
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms