tree command 樹狀資料結構

Tree 樹狀結構化呈現

在指定的路徑下使用 tree

Example 1

1
tree /a /f > test.txt

Example 2

1
tree /f > test.txt

Example 3

1
dir /s /b> test.txt

Example 4

1
dir /b /a-d> test.txt

Options

  • /a Display the tree using standard ASCII characters.
  • /b Display the full pathname of each directory, without any of the line-drawing characters.
  • /d Display file and directory descriptions.
  • /f Display files as well as directories.
  • /h Display hidden as well as normal directories. If you combine /h and /f, hidden files are also displayed.
  • /t Display the time and date for each directory. If you combine /t and /f, the time and date for each file will also be displayed.
  • /T:c Creation date and time.
  • /T:w Last modification (“write”) date and time (default).
  • /z Display the size of each file. /z without a /f will display the subdirectory tree sizes.
作者

Nigo Chen

發表於

2022-03-18

更新於

2022-03-18

許可協議

評論

© 2022

0個訪客