输出目录文件列表清单

window列出文件夹文件列表是dir,linux是ls。
而将文件列表输入到文件 直接用 > 就行了。

dir >print.txt
dir /b >print.txt #简洁模式
dir /s/b >print.txt #包含子目录

ls >print.txt #linux

Ref

How do I print a listing of files in a directory?
How to create a text file list of the contents of a folder

posted @ 2017-06-13 17:27  码不能停  阅读(916)  评论(0编辑  收藏  举报