Traditional Culture Encyclopedia - The 24 Solar Terms - Linux uses cp command to force override function.
Linux uses cp command to force override function.
It doesn't matter if there are fewer documents, but if there are many documents, it is simply too tired to confirm them one by one. To make matters worse, even if we add the -rf parameter, we will still get a prompt.
Why is this happening?
The reason is that the cp command is an alias of the system.
We can check:
In other words, the cp command we usually use is actually cp -i I.
What does the -i parameter mean?
Just give a hint before covering, which should be regarded as an insurance measure of the system.
What if you want to forcibly copy and don't want to enter y one by one?
Use native commands:
Cancel alias:
So when you use cp -rf again, you won't be prompted to confirm.
However, it should be noted that after use, remember to restore the alias.
The first method is recommended here, because the command is simple and there is no risk of forgetting to restore the alias.
The above is the whole content of this article. If you think it's not bad, please like it, forward it and pay attention. Thanks for your support.
Recommended reading:
- Previous article:How about taking the children to Halloween?
- Next article:What did the ancients do in the cold season?
- Related articles
- Geely King Kong refueled from the accelerator and the car was frustrated.
- What's the weather like during the Spring Festival in Guizhou?
- What will Grain Rain eat in 2022 _ What will Grain Rain eat for health?
- Fox's acceleration is weak and the engine is muffled.
- Wechat crazily guessed the answer to God's 579th idiom.
- Draw a solar term with the autumnal equinox solar term
- How long can I change the red sheets for the wedding?
- [Winter solstice greetings and pictures] Happy winter solstice greetings pictures
- Xiaoman solar terms named girl
- When is the mature season of millet?