1AD(1) 3.1.12 AD(1)
2
3
4
6 ad - Netatalk compatible UNIX file utility suite.
7
9 ad {ls | cp | mv | rm} [...]
10
11 ad {-v | --version}
12
14 ad is a UNIX file utility suite with Netatalk compatibility.
15 AppleDouble data (extended attributes of files, ._files in same
16 directories or files in .AppleDouble directories) and the CNID
17 databases are updated as appropriate.
18
20 ad ls [-dRl [u]] {file|dir [...]}
21
22 List files and directories.
23
24 ad cp [-aipvf] {src_file} {dst_file}
25
26 ad cp -R [-aipvf] {src_file|src_directory ...} {dst_directory}
27
28 Copy files and directories.
29
30 ad mv [-finv] {src_file} {dst_file}
31
32 ad mv [-finv] {src_file|src_directory ...} {dst_directory}
33
34 Move files and directories.
35
36 ad rm [-Rv] {file|directory}
37
38 Remove files and directories.
39
40 ad -v|--version
41
42 Show version.
43
45 List files and directories. Options:
46
47 -d
48 Directories are listed as plain files
49
50 -R
51 list subdirectories recursively
52
53 -l
54 Long output, list AFP info
55
56 -u
57 List UNIX info
58
59 Long output description
60
61 <unixinfo> <FinderFlags> <AFP Attributes> <Color> <Type> <Creator> <CNID from AppleDouble> <name>
62
63 FinderFlags (valid for (f)iles and/or (d)irectories):
64
65 d = On Desktop (f/d)
66 e = Hidden extension (f/d)
67 m = Shared (can run multiple times) (f)
68 n = No INIT resources (f)
69 i = Inited (f/d)
70 c = Custom icon (f/d)
71 t = Stationery (f)
72 s = Name locked (f/d)
73 b = Bundle (f/d)
74 v = Invisible (f/d)
75 a = Alias file (f/d)
76
77 AFP Attributes:
78
79 y = System (f/d)
80 w = No write (f)
81 p = Needs backup (f/d)
82 r = No rename (f/d)
83 l = No delete (f/d)
84 o = No copy (f)
85
86 Note: any letter appearing in uppercase means the flag is set but it's a directory for which the flag is not allowed.
87
89 Copy files and directories.
90
91 In the first synopsis form, the cp utility copies the contents of the
92 src_file to the dst_file. In the second synopsis form, the contents of
93 each named src_file is copied to the destination dst_directory. The
94 names of the files themselves are not changed. If cp detects an attempt
95 to copy a file to itself, the copy will fail.
96
97 When a copy targeting an AFP volume is detected, its CNID database
98 daemon is connected and all copies will also go through the CNID
99 database. AppleDouble data are also copied and created as needed when
100 the target is an AFP volume.
101
102 Options:
103
104 -a
105 Archive mode. Same as -Rp.
106
107 -f
108 For each existing destination pathname, remove it and create a new
109 file, without prompting for confirmation regardless of its
110 permissions. (The -f option overrides any previous -i or -n
111 options.)
112
113 -i
114 Cause cp to write a prompt to the standard error output before
115 copying a file that would overwrite an existing file. If the
116 response from the standard input begins with the character 'y' or
117 'Y', the file copy is attempted. (The -i option overrides any
118 previous -f or -n options.)
119
120 -n
121 Do not overwrite an existing file. (The -n option overrides any
122 previous -f or -i options.)
123
124 -p
125 Cause cp to preserve the following attributes of each source file
126 in the copy: modification time, access time, file flags, file mode,
127 user ID, and group ID, as allowed by permissions. If the user ID
128 and group ID cannot be preserved, no error message is displayed and
129 the exit value is not altered.
130
131 -R
132 If src_file designates a directory, cp copies the directory and the
133 entire subtree connected at that point. If the src_file ends in a
134 /, the contents of the directory are copied rather than the
135 directory itself.
136
137 -v
138 Cause cp to be verbose, showing files as they are copied.
139
140 -x
141 File system mount points are not traversed.
142
144 Move files and directories.
145
146 Move files around within an AFP volume, updating the CNID database as
147 needed. If either:
148
149 · source or destination is not an AFP volume
150
151 · source AFP volume != destination AFP volume
152
153 the files are copied and removed from the source.
154
155 Options:
156
157 -f
158 Do not prompt for confirmation before overwriting the destination
159 path. (The -f option overrides any previous -i or -n options.)
160
161 -i
162 Cause mv to write a prompt to standard error before moving a file
163 that would overwrite an existing file. If the response from the
164 standard input begins with the character `y' or `Y', the move is
165 attempted. (The -i option overrides any previous -f or -n options.)
166
167 -n
168 Do not overwrite an existing file. (The -n option overrides any
169 previous -f or -i options.)
170
171 -v
172 Cause mv to be verbose, showing files after they are moved.
173
175 Remove files and directories.
176
177 The rm utility attempts to remove the non-directory type files
178 specified on the command line. If the files and directories reside on
179 an AFP volume, the corresponding CNIDs are deleted from the volumes
180 database.
181
182 The options are as follows:
183
184 -R
185 Attempt to remove the file hierarchy rooted in each file argument.
186
187 -v
188 Be verbose when deleting files, showing them as they are removed.
189
191 Report bugs to the Netatalk-devel list
192 <netatalk-devel@lists.sourceforge.net>.
193
195 dbd(1), apple_dump(1).
196
197
198
1993.1.12 05 Dec 2015 AD(1)