In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "Linux system how to copy all the files under the folder to another folder", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "Linux system how to copy all the files under the folder to another folder" bar!
We can use the cp or copy command to copy or copy files on a Linux system, but how do we copy all the files in one folder to another? Let's give a brief introduction.
Copy command
1. Copy, cp, the function of this command is to copy the given file or directory to another file or directory. Syntax: cp [option] source file or directory destination file or directory
2. For example, create two subfolders, test1 and test2, under the / TEST directory. Suppose you copy the test01 file under the source file test1, and the target directory is test2.
Can be used directly: cp / TEST/test1/test01 / TEST/test2
3. For example, create two subfolders, test1 and test2, under the / TEST directory. Suppose you copy the source file test1 folder and the destination directory is test2.
Direct use: cp-r / TEST/test1 / TEST/test2
4. But how do you copy all the files in one folder to another?
5. Cp-r / TEST/test1/. should be used / TEST/test2 . Copy the folders and files in test1 to test2.
6. You can also use cp-r / TEST/test1/* / TEST/test2. Get the same effect.
Thank you for your reading, the above is the "Linux system how to copy all the files under the folder to another folder" content, after the study of this article, I believe you on the Linux system how to copy all the files under the folder to another folder this problem has a deeper understanding, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.