There's a wwwroot directory beneath the home directory, plus a sinozzz directory under wwwroot, ie /home/wwwroot/sinozzz
1. Directory creation
Generate a new sinozzz123 folder below the /home/wwwroot directory
mkdir/home/wwwroot/sinozzz123
Second, the directory copy
1. Copy the files and folders in /home/wwwroot/sinozzz towards the home/wwwroot/sinozzz123 directory
cp-rf/home/wwwroot/sinozzz/*/home/wwwroot/sinozzz123
2. Copy the folders and files under /home/wwwroot/sinozzz123/abc/ for the home/wwwroot/sinozzz123 directory
cp-rf/home/wwwroot/sinozzz123/abc/*/home/wwwroot/sinozzz123
three. Copy the /home/wwwroot/sinozzz directory to the /home/wwwroot/sinozzz123 directory, that may be, copy sinozzz into a subdirectory of sinozzz123, and turn out to be the path of /home/wwwroot/sinozzz123/sinozzz
cp-rf/home/wwwroot/sinozzz/home/wwwroot/sinozzz123
Three, directory cut
1. Make use of the mv command to cut the file.
In the event you ought to cut the 1.mp3 file in the /home/wwwroot/sinozzz123/music/ directory for the /home/wwwroot/sinozzz123/abc directory, execute the following command:
#mv/home/wwwroot/sinozzz123/music/1.mp3/home/wwwroot/sinozzz123/abc
2. Use the mv command to cut the folder.
Reduce the /home/wwwroot/sinozzz123/soft folder towards the /home/wwwroot/sinozzz123/abc directory
#mv/home/wwwroot/sinozzz123/soft/home/wwwroot/sinozzz123/abc
3. Use mv command to reduce folders and files
Reduce the folders and files below /home/wwwroot/sinozzz123/photo/ to the /home/wwwroot/sinozzz123/abc directory
#mv/home/wwwroot/sinozzz123/photo/*/home/wwwroot/sinozzz123/abc
Fourth, the directory rename
Under Linux, moving files and renaming are the exact same command, mv (which suggests move)
Command: mv source file name target file name
1. Rename /home/wwwroot/sinozzz123/index.htm to /home/wwwroot/sinozzz123/index.html
#mv/home/wwwroot/sinozzz123/index.htm/home/wwwroot/sinozzz123/index.html
2. Rename the /home/wwwroot/sinozzz123 directory to /home/wwwroot/sinozzz456
#mv/home/wwwroot/sinozzz123/home/wwwroot/sinozzz456
V.
usb recovery data deletes the directory is extremely basic, lots of people are still applied to employing rmdir, but after the directory just isn't empty, it is going to fall into deep distress, now use the rm-rf command.
Direct rm is sufficient, but you will need to add two parameters -rf
Namely: rm-rf directory name
-r is recursive downward, regardless of how a lot of levels of directories, delete
-f indicates to delete it directly without any prompt
1.
http://www.google.com :
rm-f/home/wwwroot/sinozzz456/index.html
The file /home/wwwroot/sinozzz456/index.html will probably be forcibly deleted
two. Empty folder example:
rm-rf/home/wwwroot/sinozzz456/abc/*
All files and folders inside the /home/wwwroot/sinozzz456/abc directory are going to be forcibly deleted, leaving the /home/wwwroot/sinozzz456/abc directory
3. Delete the folder instance:
rm-rf/home/wwwroot/sinozzz456
Will delete the /home/wwwroot/sinozzz456 directory and all files and folders beneath it
It should be reminded which you has to be pretty careful when using this rm-rf, Linux has no recycle bin
Of course, rm has a lot more other parameters and usage, manrm might be viewed
For anyone who is operating in the /home/wwwroot/ directory, it is possible to omit the /home/wwwroot/ element of each command