当前位置:网站首页>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

边栏推荐
- How about the one-stop machine learning opening platform mlflow?
- Timeline and logistics information. You don't need stepview at all
- JS prohibit copying page content
- [FAQ] summary of common problems and solutions during the use of rest API interface of sports health service
- 2022 ciscn preliminary satool
- Don't mistake "it informatization" for "super project"
- Start with interpreting the code automatically generated by BDC, and explain the trial version of the program components of sapgui
- Performance test plan (plan) template
- colmap源码阅读笔记[1] threading.cc
- If the files and graphics are lost, it means that you don't need the office developed by yourself
猜你喜欢

从解读 BDC 自动生成的代码谈起,讲解 SAPGUI 的程序组成部分

2022 ciscn preliminary satool

NanoMQ Newsletter 2022-05|v0.8.0 发布,新增 WebHook 拓展接口和连接认证 API

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

The deep neural network classifies nearly 2billion images per second, and the new brain like optical classifier chip is on nature

Start with interpreting the code automatically generated by BDC, and explain the program components of sapgui

Use soapUI tool to generate SMS interface code

汇编语言入门-总结

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

Google proposed the super pre training model coca, and the accuracy of fine-tuning top-1 on Imagenet reached 91%! SOTA on multiple downstream tasks!
随机推荐
【NLP】NLP全路径学习推荐
'setbackgrounddrawable() 'is deprecated, setbackgrounddrawable is obsolete
#yyds干货盘点# 解决剑指offer:跳台阶扩展问题
[mobile robot] principle of wheel odometer
Dynaslam ii: carefully coupled multi object tracking and slam
Unity3d uses URP rendering pipeline to realize ar shadow (shadow casting and transparent ground)
Comparison of two BigDecimal data types, addition, subtraction, multiplication and division, and formatting
Mr developed by unity3d realizes model occlusion and transparent ground receiving shadow
2022 ciscn preliminary PWN complete WP
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
Neuron Newsletter 2022 - 05 | ajout de 2 entraînements Sud et 1 Application Nord, mise en œuvre de l'extension personnalisée par Modbus TCP
"Forget to learn again" shell Basics - 29. Awk built-in variables
从解读 BDC 自动生成的代码谈起,讲解 SAPGUI 的程序组成部分试读版
從解讀 BDC 自動生成的代碼談起,講解 SAPGUI 的程序組成部分
NanoMQ Newsletter 2022-05|v0.8.0 发布,新增 WebHook 拓展接口和连接认证 API
JS global timer case
蔚来:“拿捏”了数据,“扭捏”着未来
Don't mistake "it informatization" for "super project"
[deep learning] the credit card fraud anomaly detection based on the deep learning autoencoder is very effective
TIDB 初级课程体验 8 (集群的管理维护, 添加一个TIKV节点)