Now, I've created two new folders in my/root directory, one is/root/aaa the other is/root/bbb. There are 5 text files in the/root/aaa. 1.txt, 2.txt, 3.txt, 4.txt, 5.txt respectively. 1.txt file content is "This is a 1.txt file." 2.txt file content is "This is a 2.txt file." , and so on.
The/ROOT/BBB folder is empty. We now learn to use commands in the terminal to move, copy, and delete files in the/root/aaa.
The first is the mobile command CP. We use the left mouse button click "Start"--> "Application"--> "Attachment"--> "System Terminal", open the terminal. We enter the command cp/root/aaa/1.txt/root/bbb/a.txt. The meaning is to copy the 1.txt files from the/root/aaa/folder into the/root/bbb/folder and name it a.txt. Let's see if the contents of the A.txt file in the/ROOT/BBB folder are the same as the 1.txt file.
Now let's go to the/ROOT/BBB folder and see if there's a a.txt file?
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.