命令行 查找文件
If you are anything like me, you like to keep your projects as tight as possible. By "tight" I mean no lingering, useless files or directories, because bloat is an incredible annoyance and distraction. And we don't want distractions, do we?
如果您像我一样,则希望保持项目尽可能紧凑。 “紧密”是指没有挥之不去,无用的文件或目录,因为膨胀是令人难以置信的烦恼和干扰。 而且我们不想分心,对吗?
There's a really easy way to find empty files and directories from the command line:
有一种从命令行查找空文件和目录的简单方法:
find /path/to/source/directory -empty
The result will be a list of empty files or directories which you can gloriously remove from your project and relax knowing you're running an incredibly tight ship.
结果将是空文件或目录的列表,您可以从项目中删除这些文件或目录,并放心地知道您正在运行的船非常紧张。
命令行 查找文件