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.
Type aliasadm -l and press Return.
This lists the contents of the aliases table in alphabetical order by alias.
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.
Type aliasadm -m alias and press Return.
The alias entry is listed.
# aliasadm -m ignatz ignatz: ignatz@saturn # Alias for Iggy Ignatz |
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.