命令行 查找文件_从命令行查找空文件和目录

命令行 查找文件

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.

结果将是空文件或目录的列表,您可以从项目中删除这些文件或目录,并放心地知道您正在运行的船非常紧张。

翻译自: https://davidwalsh.name/find-empty-files

命令行 查找文件

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值