当前位置:网站首页>MV command – move or rename files
MV command – move or rename files
2022-06-25 05:59:00 【ProYuan28】
mv The order is “move” Abbreviations of words , Its function is roughly the same as that in English , You can move files or rename them .
This is a frequently used file management command , We need to pay special attention to the difference between it and replication :mv And cp Different results .mv Commands are like files “ house-moving ”, The file name has changed , But the number has not increased . and cp The command is to copy files , The number of files has increased .
Grammar format :mv [ Parameters ]
Common parameters :
| -i | If there is a file with the same name , Then ask the user whether to overwrite |
| -f | When overwriting an existing file , Without any hint |
| -b | When a file exists , Create a backup for it before overwriting |
| -u | When the source file is newer than the target file , Or when the target file does not exist , Move this operation |
Reference examples
Will file file_1 Rename it to file_2:
[[email protected] ~]# mv file_1 file_2
Will file file Move to directory dir in :
[[email protected] ~]# mv file /dir
Put the table of contents dir1 Mobile directory dir2 in ( The premise is the directory dir2 Already exists , If it does not exist, change the name ):
[[email protected] ~]# mv /dir1 /dir2
Put the table of contents dir1 Move the files under to the current directory :
[[email protected] ~]# mv /dir1/* .
边栏推荐
- CVPR2021-Semi-supervised Domain Adaptation based on Dual-level Domain Mixing for Semantic Segmentati
- [QT] for multithreaded programs, do not use the printf() function to print out
- Soft exam information system project manager_ Management Science (Operations Research) 2--- senior information system project manager of soft test 034
- 16 application problem solving
- SAP ui5 date type sap ui. model. type. Analysis of date parsing format
- D compile time reflection
- ThreadLocal
- Introduction to MySQL test run test framework
- Understanding of process, thread, task queue, event loop, macro task, micro task, execution stack and other concepts in JS
- Semantic segmentation cvpr2019-advance: advantageous enterprise minimization for domain adaptation in semantic segmentation
猜你喜欢

Distributed solar photovoltaic inverter monitoring

MySQL uses the where condition to find strange results: solve

Volatile and JMM memory models

"APEC industry +" biov Tech talks about the cross-border of Chinese biotechnology enterprises and "Pratt & Whitney Kangyu" | apec-hub public welfare
Interviewer: what is an iterator? What is the relationship between async await and iterators?
Some common errors and solutions of using SAP ui5 to consume OData services

Mongodb delete data
![[day40 literature extensive reading] space and time in the child's mind: metallic or atomic](/img/98/10b3e63c9609990c51b619d9ca6179.jpg)
[day40 literature extensive reading] space and time in the child's mind: metallic or atomic

CVPR2021-Semi-supervised Domain Adaptation based on Dual-level Domain Mixing for Semantic Segmentati
![[OSPF routing calculation (class I LSA router, class II LSA network, and class III LSA sum net)] -20211228-30](/img/c7/e38a7a5cd4c1e4105c3f3f246276c6.jpg)
[OSPF routing calculation (class I LSA router, class II LSA network, and class III LSA sum net)] -20211228-30
随机推荐
JMeter stress testing and agent recording
Array introduction plus example 01
What happens when you use "-fno exceptions", "new T"- With “-fno-exceptions”, what happens with “new T”?
2.20 learning content
Understanding of process, thread, task queue, event loop, macro task, micro task, execution stack and other concepts in JS
The k-th node of the binary search tree [sword finger offer]
Summary of 6 common methods of visual deep learning model architecture
What is flush software? Is it safe to open an account online?
Pytorch- daily learning notes of some small functions involving training
Kyma application connectivity feature introduction
Use of arrays tool class
Ethernet
Day13 (inner class, anonymous inner class, API common class)
C simple operation mongodb
Unsupervised domain adaptation in semantic segmentation:a review unsupervised domain adaptation in semantic segmentation: a review
Learn the interface test, see it is very good, and make a note
Day21 JMeter usage basis
Semantic segmentation fcns in the wild: pixel level adaptive and constraint based adaptation
Deep analysis of epoll reactor code
Websocket in the promotion of vegetable farmers