linux

ls > filename.txt
--打印当前目录及子目录所有文件
find "$PWD" > print.txt

window dos

dir > filename.txt
--打印当前目录及子目录所有文件
dir /s /b > print.txt

 

转自:https://www.cnblogs.com/flowerszhong/p/6726584.html

 

posted on 2024-06-11 17:49  06  阅读(10)  评论(0编辑  收藏  举报