当前位置:网站首页>Cp/rm/mv parameters

Cp/rm/mv parameters

2022-06-24 02:55:00 buiu

Linux Common commands , Record here for backup and recording , Need to master cp Some parameters of the command , This is an important part of permission control

cp

Parameters

effect

a

-dr --preserve=all

d

If the original file is a linked file , Then copy the linked file attributes

f

If the target file already exists and cannot be opened , Then try again

-i

Interaction , Ask before overwriting

-l

Create a hard link

-p

Copy along with file properties , Instead of using default properties

-r

recursive

-s

Soft link

mv

Parameters

effect

f

mandatory , Force coverage

i

Interaction

u

If the target already exists and the original document is newer , It will be updated.

rm

Parameters

effect

f

force, Ignore the nonexistent , Force deletion of existing

i

Interaction

r

recursive

NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN

Word count word count word count word count word count word count word count word count word count

原网站

版权声明
本文为[buiu]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/10/20211022184837781u.html