16.8 The ls -d OptionIf you give ls the pathname of a directory, ls lists the entries in the directory: % With the -d option, ls lists the directory itself: % The -d option is especially handy when you're trying to list the names of some directories that match a wildcard. Compare the listing with and without the -d option: % To list only the directory names, see the tip in article 15.10 . - |
|