<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.riguz.com/index.php?action=history&amp;feed=atom&amp;title=Linux%3Acp%E5%91%BD%E4%BB%A4</id>
	<title>Linux:cp命令 - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.riguz.com/index.php?action=history&amp;feed=atom&amp;title=Linux%3Acp%E5%91%BD%E4%BB%A4"/>
	<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=Linux:cp%E5%91%BD%E4%BB%A4&amp;action=history"/>
	<updated>2026-06-02T23:51:22Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.riguz.com/index.php?title=Linux:cp%E5%91%BD%E4%BB%A4&amp;diff=1750&amp;oldid=prev</id>
		<title>imported&gt;Soleverlee：​以“&lt;source lang=&quot;bash&quot;&gt; \cp -f res/* dest &lt;/source&gt; 这样覆盖时就不会出现提示。因为cp默认加了-i参数： &lt;source lang=&quot;bash&quot;&gt; alias cp &lt;/source&gt; 可...”为内容创建页面</title>
		<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=Linux:cp%E5%91%BD%E4%BB%A4&amp;diff=1750&amp;oldid=prev"/>
		<updated>2016-09-01T03:08:30Z</updated>

		<summary type="html">&lt;p&gt;以“&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt; \cp -f res/* dest &amp;lt;/source&amp;gt; 这样覆盖时就不会出现提示。因为cp默认加了-i参数： &amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt; alias cp &amp;lt;/source&amp;gt; 可...”为内容创建页面&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
\cp -f res/* dest&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
这样覆盖时就不会出现提示。因为cp默认加了-i参数：&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
alias cp&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
可以通过修改~/.bashrc文件修改。&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@iZ94k4nfl8bZ gd]# alias&lt;br /&gt;
alias cp=&amp;#039;cp -i&amp;#039;&lt;br /&gt;
alias l.=&amp;#039;ls -d .* --color=auto&amp;#039;&lt;br /&gt;
alias ll=&amp;#039;ls -l --color=auto&amp;#039;&lt;br /&gt;
alias ls=&amp;#039;ls --color=auto&amp;#039;&lt;br /&gt;
alias mv=&amp;#039;mv -i&amp;#039;&lt;br /&gt;
alias rm=&amp;#039;rm -i&amp;#039;&lt;br /&gt;
alias which=&amp;#039;alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde&amp;#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
.bashrc文件内容：&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# .bashrc&lt;br /&gt;
&lt;br /&gt;
# User specific aliases and functions&lt;br /&gt;
&lt;br /&gt;
alias rm=&amp;#039;rm -i&amp;#039;&lt;br /&gt;
alias cp=&amp;#039;cp -i&amp;#039;&lt;br /&gt;
alias mv=&amp;#039;mv -i&amp;#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux/Unix]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Soleverlee</name></author>
	</entry>
</feed>