当前位置:网站首页>06 cp 命令
06 cp 命令
2022-07-26 21:15:00 【蓝风9】
前言
呵呵 这个命令 应该是 linux 使用者 基本上都会使用到的吧?
呵呵 我们这里主要是 看一下 这个命令是如何工作的
main 中主要是参数处理, 然后将核心业务委托给 do_copy
do_copy 处理 文件/文件夹 做不同的业务逻辑处理, 调用 copy.copy 来拷贝文件, copy.copy_reg 来拷贝普通文件
copy_reg 处理真实的文件拷贝, 支持各类文件拷贝
sparse_copy 将源文件的二进制内容 基于 buffer 拷贝到目标文件
基于 linux-4.4.0 + coreutils-8.25
调试基于命令 "cp .version .version.bak"
main
参数处理, 校验, 业务委托给 do_copy

do_copy
文件/文件夹 分类分别处理

copy.copy_reg

copy.sparse_copy
基于 buf 复制二进制的文件内容

完
边栏推荐
猜你喜欢
随机推荐
From manual test to automatic test, it only took me a few months to double my salary
1 - "pytorch deep learning practice" - linear model
In depth interpretation of happens before principle
Basic operation of (C language) files
[mysql]substr usage - query the value of specific digits of a field in the table
Six instructions of Memcache based caching mechanism
flask 源码启动阶段
Is it safe to open an account on flush? How to choose a securities firm for opening an account
If you do not add waitkey() function after imshow() function, it will not be displayed
Can you use redis? Then come and learn about redis protocol
Resume in 2022 is dead in the sea. Don't vote. Software testing positions are saturated
5、 Applet error: message:error: system error, error code: 80058, desc of scope userLocation is empty
JDBC operation and entry case of MySQL
Altium Designer 22 中文字符乱码
知识库工具 | 微网站、文档中心、形象展示页拖拽即可生成(附模板,直接用)
In depth analysis of the source code, why is the string class immutable? (hit me before you understand)
The United States once again challenged: Forbidding contractors to purchase the equipment and technology of these five Chinese companies
MPLS基础知识概述
Difference between D and C
July training (the 26th day) - and check the collection


![[shutter -- geTx] pop up - dialog, snackBar, bottomsheet](/img/17/af2e45620e96a78235081145b7bb76.png)





