In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "Linux copy directory error report cp:omitting directory how to solve", the article explains the content 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 "copy directory error cp:omitting directory in Linux how to solve" it!
If you copy a directory to another directory in the Linux system, an error will occur when you use the cp command.
1. Under the / home/ directory, create a new directory, for example: 123
2. Copy the directory 123to the / tmp/ directory, and use the cp command
3. System error report, cp:omitting directory '123'
4. Use the cp-r command to copy (Note: the cp command cannot copy directories by default, and you need to add the parameter-r).
5. Check the copy result. Directory 123 has been copied successfully.
6. Remarks: parameters after cp
-a this option is usually used when copying directories. It retains links, file attributes, and recursively copies directories, which is equivalent to a combination of dpR options.
-d keep the link when copying.
-f deletes an existing target file without prompting.
In contrast to the-I and f options, prompts are given for user confirmation before overwriting the target file. When answering y, the target file will be overwritten and is an interactive copy.
-p at this time, in addition to copying the contents of the source file, cp will also copy its modification time and access rights to the new file.
-r if the source file given is a directory file, cp will recursively copy all subdirectories and files in that directory. At this point, the target file must be a directory name.
-l do not make a copy, just link the file.
Note:
1. The cp-a command can also complete directory replication.
2. Format cp-r directory name new directory name.
Thank you for your reading, the above is the "Linux replication directory error report cp:omitting directory how to solve" the content, after the study of this article, I believe you copy directory error cp:omitting directory in Linux how to solve 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.