In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you the use of linux mmove command to move files or directories, I hope you will learn a lot after reading this article, let's discuss it together!
The Linux mmove command is used to move files or directories, or change names, in the MS-DOS file system.
Mmove is a mtools tool command that simulates MS-DOS 's move command to move an existing file or directory or change the name of an existing file or directory in the MS-DOS file system.
Syntax format: mmove [source file or directory] [target file or directory]
Common parameters:
Source file or directory path the source file or directory path after the operation is performed
Reference example
Use the directive mmove to move the file a.txt to the directory dir:
[root@linuxcool ~] # mmove a.txt dir
Use the directive mmove to move the file "autorun.bat" to the directory "test":
[root@linuxcool ~] # mmove autorun.bat test
After the above command is executed, the instruction mmove moves the file "autorun.bat" to the specified directory "test".
Use the directive mmove to move the file test to the directory "autorun.bat":
[root@linuxcool ~] # mmove test autorun.bat
Note: users can use the mdir directive to view the moved file or directory information.
Look at the original directory before using this command and get the following results:
[root@linuxcool] # mdir-/ a:\ * Volume in drive A has no label # load information Volume Serial Number is 13D2~055C Directory for avo / # the following is directory information # filename directory size modification time. / TEST 2009-09-23 16:59 AUTORUN.INF 2009-09-23 16:53 AUTORUN.BAT 43 2009-09-23 16:56 3 files 308 bytes # Total size 724 325 bytes free # remaining space
Use the mmove command and review it again, and the results are as follows:
[root@linuxcool ~] # mmove autorun.bat test [root@linuxcool ~] # mdir-/ a:\ * Volume in drive A has no label # loading information Volume Serial Number is 13D2~055C Directory for avatar / # the following is directory information # filename directory size modification time. / TEST 2009-09-23 16:59 AUTORUN.INF 265 2009-09-23 16:53 2 files 265 bytes # Total size 724683 bytes free # remaining space cmd@cmd -desktop:~$ mdir-/ a:\ test\ * # check the files in the test directory again AUTORUN.BAT 43 2009-09-23 16:56 1 files 43 bytes # the total size has finished reading this article I believe you have some understanding of moving files or directories using linux's mmove command. If you want to know more about it, you are welcome to follow the industry information channel. Thank you for your reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.