当前位置:网站首页>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/* .
边栏推荐
- Transformations of pytorch torch torch vision
- Learn the interface test, see it is very good, and make a note
- MySQL transaction learning notes (I) first encounter
- [QT] for multithreaded programs, do not use the printf() function to print out
- Jz-066- motion range of robot
- Interview experience - list of questions
- Part 33 of SAP ui5 application development tutorial - trial version of responsiveness of SAP ui5 applications
- Guava new collection type
- Guava common collection tool classes
- [interview with a large factory] meituan had two meetings. Was there a surprise in the end?
猜你喜欢
Part 34 of SAP ui5 application development tutorial - device adaptation of SAP ui5 application based on device type
C simple operation mongodb
Yunda's cloud based business in Taiwan construction 𞓜 practical school
Vscode voice notes to enrich information (medium)
SAP ui5 tutorial for beginners part XXVI - detailed steps for using OData service with mock server trial version
Add the author watermark plugin v1.4 update to the posts of elegant grass discuz plugin - some forums post errors and bugs have been fixed
Laravel8 fill data
Day21 performance test process
Go quiz: considerations for function naming return value from the go interview question (more than 80% of people answered wrong)
Various errors and solutions encountered when deploying SAP ui5 application to ABAP server with SAP Fiori tools
随机推荐
Classic usage of the sumproduct function
How SAP ui5 device type detection device API works
MySQL tuning -- 02 -- slow query log
Interview experience - list of questions
Jz-066- motion range of robot
05 virtual machine stack
50 days countdown! Are you ready for the Landbridge cup provincial tournament?
[QT] for multithreaded programs, do not use the printf() function to print out
Design of IM login server and message server
ThreadLocal
SAP ui5 beginner tutorial No. 28 - Introduction to the integration test tool OPA for SAP ui5 applications
同花顺软件究竟是什么?网上开户安全么?
Soft exam information system project manager_ Management Science (Operations Research) -- senior information system project manager of soft test 033
Guava immutable set
The locally developed SAP ui5 application is deployed to the ABAP server to perform error analysis
SAP ui5 beginner tutorial No. 27 - unit test tool quNit introduction trial version for SAP ui5 application
JS to realize the encapsulation of the function of obtaining the mouse click position
Guava common collection tool classes
Synchonized introduction
Kubevela v1.2 release: the graphical operation console velaux you want is finally here!