tree

tree #

基本用法 #

shell
tree OPTIONS [--] [directory ...]

LISTING OPTIONS
  -a			Include dot files and directories.
  -d			List directories only.
  -l			Follows symbolic links if they point to directories.
  -f			Prints the full path.
  -L level		Max display depth of the tree.
  -P pattern	List files that match the wild-card pattern.
  				Valid operators are `*`, `?`, `[...]`, `[^...]`, `|`
  -I pattern	Do not list files that match the wild-card pattern.
  --ignore-case Ignore the case if `-P` or `-I` option specfied.
  --prune		Prune empty directories.
  --noreport	Omits the report at the end of tree.
  --filelimit N	Do not descend directories that contain more than N entries.

FILE OPTIONS
  -Q			Quote the names in double quotes.
  -p			Print the file type and permissions for each file.
  -u			Print the username or UID for each file.
  -g			Print the group name or GID for each file.
  -s			Print the size of each file in bytes.
  -h			Print the size of each file in a human readable way.
  --du			Report the total size.

GRAPHICS OPTIONS
  -i			Do not print the indentation.
  -n			Turn colorization off always, over-ridden by the `-C` option.
  -C			Turn colorization on always.
2020年2月23日