免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4014 | 回复: 1
打印 上一主题 下一主题

[文件目录] 如何显示大小不为零的文件? [复制链接]

论坛徽章:
223
2022北京冬奥会纪念版徽章
日期:2015-08-10 16:30:32操作系统版块每日发帖之星
日期:2016-05-10 19:22:58操作系统版块每日发帖之星
日期:2016-02-18 06:20:00操作系统版块每日发帖之星
日期:2016-03-01 06:20:00操作系统版块每日发帖之星
日期:2016-03-02 06:20:0015-16赛季CBA联赛之上海
日期:2019-09-20 12:29:3219周年集字徽章-周
日期:2019-10-01 20:47:4815-16赛季CBA联赛之八一
日期:2020-10-23 18:30:5320周年集字徽章-20	
日期:2020-10-28 14:14:2615-16赛季CBA联赛之广夏
日期:2023-02-25 16:26:26CU十四周年纪念徽章
日期:2023-04-13 12:23:10操作系统版块每日发帖之星
日期:2016-05-10 19:22:58
1 [报告]
发表于 2015-12-29 12:47 |显示全部楼层
对,find -size选项可以有
  1. shell@localhost:~$ find -size 0
  2. ./.config/enchant/en.dic
  3. ./.config/enchant/en.exc
  4. ./.config/chromium/Default/Web Data-journal
  5. ./.config/chromium/Default/History-journal
  6. ./.config/chromium/Default/data_reduction_proxy_leveldb/LOCK
  7. ./.config/chromium/Default/data_reduction_proxy_leveldb/000003.log
  8. ./.config/chromium/Default/Login Data-journal
  9. ./.config/chromium/Default/Favicons-journal
  10. ./.config/chromium/Default/Top Sites-journal
  11. ./.config/chromium/Default/Shortcuts-journal
  12. ./.config/chromium/Default/Network Action Predictor-journal
  13. ./.config/chromium/Default/Cookies-journal
  14. ./.config/chromium/Default/Local Storage/chrome-extension_pafkbggdmjlpgkdkcbjmhmfcdpncadgh_0.localstorage-journal
  15. ./.config/chromium/Default/Local Storage/http_pan.baidu.com_0.localstorage-journal
  16. ./.config/chromium/Default/Local Storage/http_static.atm.youku.com_0.localstorage-journal
  17. ./.config/chromium/Default/Local Storage/http_www.reabuy.com_0.localstorage-journal
  18. ./.config/chromium/Default/Local Storage/https_wx.qq.com_0.localstorage-journal
  19. ./.config/chromium/Default/Local Storage/https_wx2.qq.com_0.localstorage-journal
  20. ./.config/chromium/Default/Local Storage/https_web.yixin.im_0.localstorage-journal
  21. ./.config/chromium/Default/Local Storage/https_www.taobao.com_0.localstorage-journal
  22. ./.config/chromium/Default/Local Storage/http_bbs.chinaunix.net_0.localstorage-journal
  23. ./.config/chromium/Default/Local Storage/http_ui.ptlogin2.qq.com_0.localstorage-journal
  24. ./.config/chromium/Default/Local Storage/http_www.haosou.com_0.localstorage-journal
  25. ./.config/chromium/Default/Local Storage/http_fm.baidu.com_0.localstorage-journal
  26. ./.config/chromium/Default/Local Storage/http_music.baidu.com_0.localstorage-journal
  27. ./.config/chromium/Default/Local Storage/http_pos.baidu.com_0.localstorage-journal
  28. ./.config/chromium/Default/Local Storage/http_v.qq.com_0.localstorage-journal
  29. ./.config/chromium/Default/Local Storage/http_api.t.qq.com_0.localstorage-journal
  30. ./.config/chromium/Default/Local Storage/http_t.qq.com_0.localstorage-journal
  31. ./.config/chromium/Default/Local Extension Settings/pafkbggdmjlpgkdkcbjmhmfcdpncadgh/LOCK
  32. ./.config/chromium/Default/Extension State/LOCK
  33. ./.config/chromium/Default/Session Storage/LOCK
  34. ./.config/chromium/Default/Origin Bound Certs-journal
  35. ./.config/chromium/First Run
  36. ./.config/chromium/Safe Browsing Cookies-journal
  37. ./.local/share/mime/XMLnamespaces
  38. ./.local/share/mime/subclasses
  39. ./.local/share/mime/aliases
  40. ./.local/share/mime/generic-icons
  41. ./.local/share/mime/icons
  42. ./.gconf/apps/%gconf.xml
  43. ./.mozilla/firefox/tuz79qxc.default/.parentlock
  44. shell@localhost:~$
  45. shell@localhost:~$
  46. shell@localhost:~$ cat ./.local/share/mime/icons
  47. shell@localhost:~$
复制代码
看样子是对了

论坛徽章:
223
2022北京冬奥会纪念版徽章
日期:2015-08-10 16:30:32操作系统版块每日发帖之星
日期:2016-05-10 19:22:58操作系统版块每日发帖之星
日期:2016-02-18 06:20:00操作系统版块每日发帖之星
日期:2016-03-01 06:20:00操作系统版块每日发帖之星
日期:2016-03-02 06:20:0015-16赛季CBA联赛之上海
日期:2019-09-20 12:29:3219周年集字徽章-周
日期:2019-10-01 20:47:4815-16赛季CBA联赛之八一
日期:2020-10-23 18:30:5320周年集字徽章-20	
日期:2020-10-28 14:14:2615-16赛季CBA联赛之广夏
日期:2023-02-25 16:26:26CU十四周年纪念徽章
日期:2023-04-13 12:23:10操作系统版块每日发帖之星
日期:2016-05-10 19:22:58
2 [报告]
发表于 2015-12-29 12:49 |显示全部楼层
  1.        -size n[cwbkMG]
  2.               File uses n units of space.  The following suffixes can be used:

  3.               `b'    for  512-byte blocks (this is the default if no suffix is
  4.                      used)

  5.               `c'    for bytes

  6.               `w'    for two-byte words

  7.               `k'    for Kilobytes (units of 1024 bytes)

  8.               `M'    for Megabytes (units of 1048576 bytes)

  9.               `G'    for Gigabytes (units of 1073741824 bytes)

  10.               The size does not count  indirect  blocks,  but  it  does  count
  11.               blocks in sparse files that are not actually allocated.  Bear in
  12.               mind that the `%k' and `%b' format specifiers of -printf  handle
  13.               sparse   files  differently.   The  `b'  suffix  always  denotes
  14.               512-byte blocks and never 1 Kilobyte blocks, which is  different
  15.               to the behaviour of -ls.
复制代码
对shell不是很懂,大牛来一个正确的吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP