WordPress knowledge sharing

How to move all files under a folder to a new folder in Linux

When using CentOS to run a website, you need to use the mv command to move the website files to the new folder. We have nothing more to say about the parameters of the mv command. Today, we will briefly talk about how to move all files in the source folder to the new folder.

Format: mv Source Folder/* New Folder

Example: mv/home/wwwroot/www.vpss.net/*/home/wwwroot/vpsss

The above is to move all files in the source folder to the new folder.

After that, we use the cd new folder command to enter, and then use the ls command to check whether all the folders have been moved.

 liydwjdxwj

Like( zero )
Article name: How does Linux move all files under a folder to a new folder
Article link: https://www.vpsss.net/811.html
Copyright notice: The resources of this website are only for personal learning and exchange, and are not allowed to be reproduced and used for commercial purposes, otherwise, legal issues will be borne by yourself.
The copyright of the pictures belongs to their respective creators, and the picture watermark is for the purpose of preventing unscrupulous people from stealing the fruits of labor.