For the Copy command cp in linux, The overwrite method is not prompted when the file is overwritten.
Source: Internet
Author: User
For the Copy command cp in linux, The overwrite method is not prompted when the file is overwritten-Linux general technology-Linux programming and kernel information. For more information, see the following. \ Cp-R-f source target
By default, the cp command does not prompt overwrite? But the-I option of cp will prompt, while the Linux Startup File ~ /. Bashrc will name cp
Alias cp = 'cp-I'
In this way, in Linux, the cp command is actually run cp-I, and the "\" symbol is added to make the cp Command run without the alias (cp-I.
Will there be no overwrite? As for retaining the link, the cp command does not have such a function. You can write a simple script and check it before cp.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service