This command allows you to manage AppleTalk map suffixes. You can list, read attribute values of, add, modify, and delete suffixes from the TotalNET AppleTalk map section. Suffixes handle file extensions in AppleTalk maps. AppleTalk maps represent associations between Macintosh-style file attributes and UNIX file suffixes. You can define more than one suffix for an AppleTalk map, and more than one file service can reference an AppleTalk map.
TNHOME/usr/sbin
tnsuffix -L [-m atmap]] tnsuffix -R [-m atmap [-x suffix [{-a attribute}]]] tnsuffix (-A|-M) [-m atmap [-x suffix {-a attribute=value}]] tnsuffix -D -m atmap -x suffix
-m atmap |
Specify an AppleTalk map. |
-x suffix |
Specify the suffix to add, modify, or delete. |
This attribute specifies the comment to associate with UNIX files.
tnsuffix -M -m atmap -x suffix -a comment=string
This attribute specifies the conversion discipline to associate with UNIX files with the given suffix.
tnsuffix -M -m atmap -x suffix -a conversion={ascii|binary}
This attribute specifies the four-character Macintosh creator code to associate with UNIX files with the given suffix.
tnsuffix -M -m atmap -x suffix -a creator=Macintosh-creator-code
This attribute specifies the four-character Macintosh type code to associate with UNIX files with the given suffix.
tnsuffix -M -m atmap -x suffix -a type=Macintosh-type-code
Use one of the following commands to list all available suffixes for the entire AppleTalk realm:
tnsuffix tnsuffix -L |
Sample Output:
atblahmap |
|
|
.zip |
|
.ppt |
|
.doc |
nnnmap |
|
|
.xls |
|
.txt |
|
.ps |
Use the following command to list all suffixes available for the AppleTalk map nnnmap:
tnsuffix -L -m nnnmap |
Sample Output:
.xls .txt .ps |
Use the following command to read the value of the attribute comment for the suffix .xls in the AppleTalk map atblahmap:
tnsuffix -R -m atblahmap -x .xls -a comment |
Use the following command to create the suffix .ps in the AppleTalk map nnnmap:
tnsuffix -A -m nnnmap -x .ps -a type=PS -a comment="PostScripts" |
Use the following command to modify the value of the comment attribute to read "Microsoft Word for Windows 95 version 7.0" for the suffix .doc in the AppleTalk map atblahmap:
tnsuffix -M -m atblahmap -x .doc -a comment="Microsoft Word for Windows 95 version 7.0" |
Use the following command to delete the suffix .xls from the AppleTalk map atblahmap:
tnsuffix -D -m atblahmap -x .xls |