dos常用命令

it2022-05-09  34

1. 打印树状结构的文件目录(windows)

查询 tree /?

目录结构会打印到tree.txt文件中 tree /f > tree.txt

pwd 查看当前路径 ls 查看所有当前路径的子文件 cd 改变路径

2. 打印树状结构的文件目录(mac)

模拟tree: find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g' 添加到你的.bash_profile文件 echo "alias tree=\"find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'\"" >> ~/.bash_profile && source ~/.bash_profile

转载于:https://www.cnblogs.com/hchiu/p/7928768.html

相关资源:常用DOS命令大全及其用法详解

最新回复(0)