Linux学习-Tree命令安装和使用

  • Linux tree命令用于以树状图列出目录的内容。
  • 执行tree指令,它会列出指定目录下的所有文件,包括子目录里的文件。

    当我们在Ubuntu中需要用到tree命令时,显示Command 'tree' not found.

    tree

这是因为在Ubuntu系统中默认是没有tree这个命令的。

通过sudo apt-get install tree可以在Ubuntu中安装tree命令:

tree

然后就能使用啦(~ ̄▽ ̄)~

tree

可以通过tree --help查看具体用法

tree

猜你喜欢

转载自www.cnblogs.com/ycmqaq/p/10049484.html