文件系统层次结构表示

Wor*_*ice 0 directory files

这个问题可能是微不足道的,但我想知道是否存在print针对我机器的当前文件层次结构的命令。例如:

printhierarchy

root/bin 
    /boot
    /dev
    /etc/opt
        /sgml
        /X11/xsub1
             xsub2/xsubb2
        /X12/...
    /home/...
Run Code Online (Sandbox Code Playgroud)

主要是出于教学目的,我将不胜感激。

Ste*_*itt 5

退房tree,特别是tree -d /

/
??? bin
??? boot
?   ??? efi
?   ?   ??? EFI
?   ?       ??? debian
?   ?           ??? fw
?   ??? floppies
?   ??? grml
?   ??? grub
?   ?   ??? fonts
?   ?   ??? i386-pc
?   ?   ??? locale
?   ??? lost+found
??? crypthome
??? dev
?   ??? block
?   ??? bsg
?   ??? bus
?   ?   ??? usb
?   ?       ??? 001
?   ?       ??? 002
?   ?       ??? 003
?   ?       ??? 004
?   ?       ??? 005
?   ?       ??? 006
?   ??? char
Run Code Online (Sandbox Code Playgroud)

等等。