久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      linux中cp設(shè)置rf還是提示怎么辦

      有兩種解決方法:1、利用“vi ~/.bashrc”修改“/.bashrc”文件,在“alias cp=’cp -i’”前加上”#”將其注釋掉,并且保存退出后重新登錄即可;2、使用cp命令時(shí),在“cp”前添加“”即可去除提示。

      linux中cp設(shè)置rf還是提示怎么辦

      本教程操作環(huán)境:linux7.3系統(tǒng)、Dell G3電腦。

      linux中cp設(shè)置rf還是提示怎么辦

      默認(rèn)情況下,cp覆蓋時(shí),無(wú)論加什么參數(shù) -f 之類(lèi)的 還是提示是否覆蓋。

      原因是:服務(wù)器會(huì)默認(rèn)增加別名 alias cp=’cp -i’,當(dāng)你執(zhí)行cp時(shí),其實(shí)執(zhí)行的是cp –i。

      [root@ltt01 ~]# alias alias cp='cp -i' alias egrep='egrep --color=auto' alias fgrep='fgrep --color=auto' alias grep='grep --color=auto' alias l.='ls -d .* --color=auto' alias ll='ls -l --color=auto' alias ls='ls --color=auto' alias mv='mv -i' alias rm='rm -i' alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'

      cp 時(shí)取消提示信息,直接覆蓋,不需要用戶(hù)再敲擊 y 進(jìn)行交互,這在腳本執(zhí)行時(shí)很重要。

      下面是兩種做法解決這個(gè)問(wèn)題。

      方法一:將別名禁掉

      [root@ltt01 ~]# vi ~/.bashrc

      在alias cp=’cp -i’前加上”#”注釋掉這行,:wq! 保存退出,然后重新登陸就可以了。

      方法二:cp 前 加

      [root@ltt01 ~]# cp 1.txt /back/1.txt  [root@ltt01 ~]#

      linux中cp設(shè)置rf還是提示怎么辦

      推薦學(xué)習(xí):Linux視頻教程

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)