当前位置:网站首页>08 du 命令
08 du 命令
2022-07-26 21:15:00 【蓝风9】
前言
呵呵 这个命令 应该是 linux 使用者 基本上都会使用到的吧?
呵呵 我们这里主要是 看一下 这个命令是如何工作的
main 中主要是参数处理, 然后将核心业务委托给 du_files
du_files 基于 fts_read 来迭代文件夹下面的文件, 基于 process_file 来处理核心业务
process_file 基于 ent->fts_statp 获取文件大小, 和 时间, 然后输出 max-depth 范围内的文件信息
基于 linux-4.4.0 + coreutils-8.25
调试基于命令 "du -h -d 1 ."
main
参数处理, 然后将核心业务委托给 du_files

du_files
基于 fts_read 来迭代文件夹下面的文件, 基于 process_file 来处理核心业务

process_file
基于 ent->fts_statp 获取文件大小, 和 时间, 然后输出 max-depth 范围内的文件信息

完
边栏推荐
- Pytorch squeeze() unsqueeze() 用法
- 我的sql没问题为什么还是这么慢|MySQL加锁规则
- Flextronics responded to the "seizure of Huawei materials" incident: deeply regretted, looking forward to continuing cooperation!
- day07-
- matlab 画短时能量图
- AFNetworking了解
- Leetcode exercise - Sword finger offer II 005. maximum product of word length
- 织梦文档关键词维护不管用
- Oppo self-developed large-scale knowledge map and its application in digital intelligence engineering
- 按图搜索义乌购商品(拍立淘) API
猜你喜欢
随机推荐
Japan approves the export of EUV photoresist to South Korea, and the crisis of Samsung and SK Hynix may be alleviated
Go----Go 语言中的标识符和关键字
织梦文档关键词维护不管用
Difference between D and C
A friend with a monthly salary of 50000 told me that you were just doing chores
安全浏览器“隐身”模式可以查看历史记录吗?
基于memcache的缓存机制的6个指令
美国再次发难:禁止承包商采购这5家中国公司的设备与技术
Samsung releases 108million pixel image sensor isocell bright HMX, and Xiaomi will launch
[mysql]substr usage - query the value of specific digits of a field in the table
Use of cmake
彻底搞通服务发现的原理和实现
Six instructions of Memcache based caching mechanism
If you do not add waitkey() function after imshow() function, it will not be displayed
kalibr标定realsenseD435i --多相机标定
吃透负载均衡
Also on Data Governance
Attack and defense world ----- ics-07
Pytoch uses RNN model to build person name classifier
实际权威来自信息优势









