当前位置:网站首页>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/* .
边栏推荐
- cacacahe
- Use of MySQL variables
- Classic usage of the sumproduct function
- Do you know what a three-tier architecture is?
- [golang] leetcode intermediate - Search rotation sort array & search two-dimensional matrix II
- CSDN cerebral palsy bug has wasted nearly two hours of hard work
- A method of automatic continuation of previous tables in word table
- About the definition of pointer variables (personal notes)
- CVPR2021-Semi-supervised Domain Adaptation based on Dual-level Domain Mixing for Semantic Segmentati
- Synchonized introduction
猜你喜欢
What is SAP sup - Sybase unwired platform

Invalid bound statement (not found)
SAP ui5 application development tutorial 32 - how to create a custom SAP ui5 control
Configuration file ui5 local in SAP ui5 tools Configuration points of yaml
The e-book "action guide for large organizations to further promote zero code application platform" was officially released!
[kicad image] download and installation
Introduction to sap ui5 tools

Lesson 9: workspace introduction

Common cluster deployment schemes in redis
Use generator-easy-ui5 to quickly create the engineering structure of SAP ui5 applications
随机推荐
Multithreading and thread pool
Farewell to Lombok in 996
Differences and connections between sap ui5 and openui5
Technology inventory: Technology Evolution and Future Trend Outlook of cloud native Middleware
Leetcode topic [array] -36- effective Sudoku
JS to realize the encapsulation of the function of obtaining the mouse click position
05 virtual machine stack
Semantic segmentation fcns in the wild: pixel level adaptive and constraint based adaptation
Do you know what a three-tier architecture is?
An example of recursion, the full permutation problem of 1~n
Distributed solar photovoltaic inverter monitoring
SAP ui5 Application Development Tutorial Part 30 - parameter transfer in the routing process of SAP ui5
[day40 literature extensive reading] space and time in the child's mind: metallic or atomic
What is flush software? Is it safe to open an account online?
What are the reasons why most webmasters choose Hong Kong site group servers?
Mongodb basic concept learning - set
同花顺软件究竟是什么?网上开户安全么?
Trial version of routing history and routing back and history of SAP ui5
[kicad image] download and installation
What is the use of the subprocess module