System Administration Guide, Volume 3

How to List the Contents of an NIS+ Aliases Table

To use the aliasadm command, you must be either root, a member of the NIS+ group that owns the mail_aliases table, or the person who created the table.

Example--Listing All of the NIS+ mail_aliases Table

    Type aliasadm -l and press Return.

This lists the contents of the aliases table in alphabetical order by alias.


Note -

If you have a large aliases table, listing the entire contents can take some time. If you are searching for a specific entry, pipe the output through the grep command (aliasadm -l | grep entry) so that you can use the grep search capability to find specific entries.


Example--Listing Individual Entries in the NIS+ mail_aliases Table

    Type aliasadm -m alias and press Return.

The alias entry is listed.


# aliasadm -m ignatz
ignatz: ignatz@saturn # Alias for Iggy Ignatz

Note -

The aliasadm -m option matches only the complete alias name. It does not match partial strings. You cannot use metacharacters (like * and ?) with the aliasadm -m option. If you are interested in partial matches, type aliasadm -l | grep partial-string and press Return.