把当前目录文件名输出到一个文件

linux

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

window dos

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

Refs

How to send list of file in a folder to a txt file in Linux
How to create a text file list of the contents of a folder
How do I print a listing of files in a directory?
List files recursively in Linux CLI with path relative to the current directory

上一篇:给飞驰的法拉利换引擎 - 谈边做业务边做架构重构(1)


下一篇:中小企业如何借力工业互联网抵抗死亡潮?