当前位置:网站首页>Copying and deleting files
Copying and deleting files
2022-06-10 13:14:00 【51CTO】
One 、cp(copy file): Used to copy files or directories
grammar
cp [
options]
sourcefile
destfile
options
-
a: This option is typically used when copying directories , It retains links 、 File attribute , And copy all the contents of the directory
Action is equal to the dpR Parameter combination .
-
d: When you copy a link reserved . Here's a link is equivalent to
Windows
System Shortcuts .
-
f: Override existing target files without prompting .
-
i: And
-
f
Instead option , Prompt before overwriting the destination file , It asks the user to confirm whether to overwrite ,
answer
y
When the target file will be overwritten .
-
p: In addition to copying the contents of the file , It also copies the modification time and access rights to the new file .
-
r: If the source file is given a file directory , All subdirectories and files in this directory will be copied .
-
l: Does not copy files , Just build the link file .
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
Two 、mv(move file): Used to change the names of files and directories or move files or directories to other locations .
grammar
mv [
options]
sourcefile
destfile
options
-
b:
When the target file or directory exists , Before performing the overlay , A backup will be created for it .
-
i:
If you specify that the source directory or file to be moved has the same name as the target directory or file , Will first ask whether to overwrite the old text
Pieces of , Input
y
Means direct coverage , Input
n
Means to cancel the operation .
-
f:
If you specify that the source directory or file to be moved has the same name as the target directory or file , Don't ask , Direct coverage of old texts
Pieces of .
-
n:
Do not cover any existing files or directories .
-
u: When the source file is newer than the target file or the target file does not exist , To perform the move operation .
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
3、 ... and 、rm(remove): Used to delete a file or directory

边栏推荐
- QT database application 22 file coding format recognition
- 不吐不快
- Leetcode 96. 不同的二叉搜索樹
- 日本版arXiv凉得一批:2个多月了,才收到37篇论文
- Use soapUI tool to generate SMS interface code
- Shi Yigong and other teams posted on the cover of Science: AI and freeze electron microscope revealed the structure of "atomic level" NPC, a breakthrough in life science
- DynaSLAM II: Tightly-Coupled Multi-Object Tracking and SLAM 论文阅读
- Vdo-slam source code reading notes [1] dynamic obj part in track()
- MySQL service evolution
- Office technical lecture: punctuation - Chinese - vertical
猜你喜欢

Some words from ShareIt group

Vdo-slam: a visual dynamic object aware slam system paper reading

JS click the button to slide to the left

MySQL service evolution

MYSQL 主库操作大表DDL ,从库崩溃与系统参数错误设置

手机厂商“返祖”,只有苹果说不

Code free may event Microsoft low code matrix update; Multiple industry reports released

Tidb Primary course experience 8 (Management Maintenance of Clusters, add a tikv Node)

Introduction to assembly language - Summary

DynaSLAM II: Tightly-Coupled Multi-Object Tracking and SLAM 论文阅读
随机推荐
拷贝和删除文件
list. Remove (index) returns false, removal failed
Qt数据库应用22-文件编码格式识别
学籍管理系统
VDO-SLAM源码阅读笔记[2] local optimization和global optimization
Baidu programmers were sentenced to nine months for deleting the database. The one click unbinding function of the mobile phone number was released. Twitter compromised with musk again. Today, more bi
2022年6月中国数据库排行榜:TiDB卷土重来摘桂冠,达梦蛰伏五月夺探花
Program, calculate 2/1+3/2+5/3+8/5 Value of. It is required to calculate the sum of the first n items and keep 2 decimal places (starting from the second item of the sequence, the numerator of each it
世贸组织MC12重启 议程重点关注全球经济复苏
[Accessibility] Missing contentDescription attribute on image
#yyds干货盘点# 解决剑指offer:跳台阶扩展问题
Office technical lecture: punctuation - English - Encyclopedia
TIDB 初级课程体验 8 (集群的管理维护, 添加一个TIKV节点)
QA of some high frequency problems in oauth2 learning
Tidb elementary course experience 8 (cluster management and maintenance, adding a tikv node)
3. 网页开发工具 VS Code
Count the number and average value of natural numbers whose sum of bits within 100 is 7
从解读 BDC 自动生成的代码谈起,讲解 SAPGUI 的程序组成部分
Dynaslam ii: carefully coupled multi object tracking and slam
【Spark】(task8)SparkML中的pipeline通道建立