Use the cp command to copy files on Linux systems, but when you use the cp command to copy files to the dir directory, you will always be prompted to overwrite the files. So how do you cancel the prompt to let Linux copy files directly?
In fact, this tip is a nice feature, it is possible to prevent damage to the system caused by our negligence, but if you do not want to see the message of these interactions it? For example, we need to write a script to install some files into the specified directory, then we certainly do not want to see the prompt.
You can try the -f option, and -f generally means enforcement.
cp -f file dir
But it seems that the result is not as we hoped, the system will still have an overlay prompt. why?
The reason is very simple, the system will cp command alias to cp -i.
When we execute the cp command, the system often executes cp -i, the -i option indicates that there is interactive prompt information,
So when cp -f is executed, the system actually executes It's cp -i -f, so there will still be an overlay hint.
You can execute the alias command to view the following:
alias cp=‘cp -i’
alias l.=‘ls -d .* --color=auto&rsquo ;
alias ll=‘ls -l --color=auto’
alias ls=‘ls --color=auto’
alias mv=‘ Mv -i’
alias rm=‘rm -i’
alias which=‘alias
In school, you usually use campus network, you need to use special software to connect to the networ
As a qualified Linux system administrator, it is necessary to constantly monitor th
CentOS has just been updated to CentOS7 in recent days, so many users do not know how to install and
In Ubuntu system, you can use the tab key to automatically complete the command, but in other Linux
Two methods of Deepin system update
How to increase or decrease the file system space in Solaris
How does Linux modify the PATH path of sudo?
Steps to turn off root remote login on AIX
Krita software in the Linux system tutorial
Two ways to protect VPS SSH account security under Linux
How to set up the program to boot from Debian
How to partition Linux VPS system disk?
How to disable IPv6 in Linux systems
CentOS system implements SSH passwordless login method
How does Win10 put IE on the desktop shortcut? How to generate IE icons to the desktop
What if the Win7 router can't connect?
Several ways to slim down the WinXP system
Win7 uses IE to open the webpage computer suddenly crashes how to solve
Daily maintenance of computer systems (cleaning articles)
Win10 Tip: This key does not apply to this version of Windows Solution
Win8 system comes with reloading tool
Let Windows 7 system boot automatically connect ADSL
Understand the reason, speed up win7 computer
CF2015 Autumn 100 City League registration is hot and open. Invite friends to pump 100 city weapons