zoukankan      html  css  js  c++  java
  • How to remove all the empty files or directories?

    How to remove all the empty files or directories?

    How to remove all the empty files or directories?

    I am confused why I get many empty directories inside my Downloads directory, and I have to remove all of the empty ones. Here is what I did:

    find home/wujing/Downloads -empty -type d -delete

    The -type option tells find to match only directories, another similar option is -type f which matches regular files. The -delete option will actually delete all of the matched items.

    The xargs can do the same job.

    find run/shm -type d -empty -print0 xargs -0 -I {} rmdir "{}"

    Author: wujing

    Created: 2014-10-22 三 10:02

    Emacs 24.3.1 (Org mode 8.2.6)

    Validate

  • 相关阅读:
    3.15SQL
    SQL注入
    黑盒渗透测试【转自HACK学习-FoxRoot】
    【学校作业】某项目网络安全技术解决方案
    小米手环4使用半年后的测评报告
    GKCTF赛后复盘
    RCTF赛后复盘
    【课堂笔记】常见漏洞总结
    原型链污染问题的研究
    CTF之Web常见题型总结
  • 原文地址:https://www.cnblogs.com/wujingcqu/p/4042372.html
Copyright © 2011-2022 走看看