afpcmd - Transfer files over the networking using the Apple Filing Protocol
afpcmd is a command-line tool to help transfer files to and from a server using
AFP. This is typically either Netatalk or Mac OS or Mac OS X.
This can be done as a non-root user. It offers either an interactive
command-line (like a traditional FTP client) or for batch retrievals.
Do not confuse this with the FUSE mounting tools (mount_afp, afpfsd,
afp_client), which offer the ability to mount an entire filesystem.
sets the recursive flag.
uses the standard AFP URL format.
Look at the afpfs-ng documentation for more information on specific AFP version
Batch file transfers can be done in one of two ways:
afpcmd -r [afp url to directory
This does a recursive transfer of all subdirectories and files locally.
afpcmd [afp url to file
This transfers just the file locally.
After either of these is finished, the command exits.
If a URL is provided on the command line, afpcmd connects and enters the volume
and directory specified.
Standard readline keystrokes are enabled. Command line competion (using tab) and
history (using up and down arrows) is provided. Local filename completion is
Most common commands
<afp URL>: Connect to server, change to volume and
: Change directories on the server
<filename>: retrieve file
-r <directory>: Recursively retrieve the directory
<filename>: Upload file
: Disconnect from current server
: Prompts for a new password without showing on screen
<user>: Set the user
: change the password on the server. Does not work.
Remote directory commands
: Show current directory on server
<directory>: create new directory
<directory: remove directory
: show files in current directory
Remote file commands
old_file new_file: Rename <old file> to <new
<filename>: Create a blank file
<filename>: Show file
: <file> <mode>: Change the mode of a file on the server
: <file>: Remove file from the server
: Show status of the connection and details. For debugging.
: Show the disk size and available blocks.
: Show current local
: Change local directory
: show help
: various tests for developers
A typical usage of afpcmd is:
The complete syntax of a URL is:
If a password of "-" is provided, the user is prompted for a password.
Report bugs to the email@example.com mailing list.