1afpcmd(1) afpfs-ng afpcmd(1)
2
3
4
6 afpcmd - Transfer files over the networking using the Apple Filing Pro‐
7 tocol (AFP)
8
10 afpcmd [-r [afp url]
11
12
14 afpcmd is a command-line tool to help transfer files to and from a
15 server using AFP. This is typically either Netatalk or Mac OS or Mac
16 OS X.
17
18 This can be done as a non-root user. It offers either an interactive
19 command-line (like a traditional FTP client) or for batch retrievals.
20
21 Do not confuse this with the FUSE mounting tools (mount_afp, afpfsd,
22 afp_client), which offer the ability to mount an entire filesystem.
23
24
26 -r sets the recursive flag.
27
28 afp url uses the standard AFP URL format.
29
30
32 Look at the afpfs-ng documentation for more information on specific AFP
33 version compatibility information.
34
35
37 Batch file transfers can be done in one of two ways:
38
39 afpcmd -r [afp url to directory]
40
41 This does a recursive transfer of all subdirectories and files locally.
42
43 afpcmd [afp url to file]
44
45 This transfers just the file locally.
46
47 After either of these is finished, the command exits.
48
49
51 If a URL is provided on the command line, afpcmd connects and enters
52 the volume and directory specified.
53
54 Standard readline keystrokes are enabled. Command line competion
55 (using tab) and history (using up and down arrows) is provided. Local
56 filename completion is enabled.
57
58 Most common commands
59
60 connect <afp URL>: Connect to server, change to volume and directory
61
62 cd: Change directories on the server
63
64 get <filename>: retrieve file
65
66 get -r <directory>: Recursively retrieve the directory
67
68 put <filename>: Upload file
69
70 quit: Quit
71
72 Conect/disconnect commands
73
74 disconnect: Disconnect from current server
75
76 passwd: Prompts for a new password without showing on screen
77
78 user <user>: Set the user
79
80 passwd: change the password on the server. Does not work.
81
82 Remote directory commands
83
84 pwd: Show current directory on server
85
86 mkdir <directory>: create new directory
87
88 rmdir <directory: remove directory
89
90 ls or dir: show files in current directory
91
92 Remote file commands
93
94 mv or rename old_file new_file: Rename <old file> to <new file>
95
96 touch <filename>: Create a blank file
97
98 view <filename>: Show file
99
100 chmod: <file> <mode>: Change the mode of a file on the server
101
102 delete of rm: <file>: Remove file from the server
103
104 Status commands
105
106 status: Show status of the connection and details. For debugging.
107
108 df: Show the disk size and available blocks.
109
110 Local commands
111
112 lpwd: Show current local
113
114 lcd: Change local directory
115
116 Other commands
117
118 help or ?: show help
119
120 testafp: various tests for developers
121
122
123
125 A typical usage of afpcmd is:
126
127 afpcmd afp://username:password@servername/volume
128
129 The complete syntax of a URL is:
130
131 afp://username;AUTH=authtype:password@server:port/volume/path
132
133 If a password of "-" is provided, the user is prompted for a password.
134
135
137 Report bugs to the afpfs-ng-devel@sf.net mailing list.
138
140 afpgetstatus(1)
141
142
143
144
1450.5 13 Nov 2007 afpcmd(1)