1. 基礎(chǔ)
cp development.log tmp
將development.log文件復(fù)制到tmp文件夾去
參數(shù) -a
帶了參數(shù)-a時(shí),兩個(gè)文件的創(chuàng)建時(shí)間是一致的。參數(shù) -f
帶了參數(shù)-f時(shí),無論目標(biāo)文件或目錄是否存在。參數(shù)-i
帶了參數(shù)-i時(shí),會(huì)詢問用戶是否覆蓋文件
cp development.log tmp
將development.log文件復(fù)制到tmp文件夾去
參數(shù) -a
帶了參數(shù)-a時(shí),兩個(gè)文件的創(chuàng)建時(shí)間是一致的。
參數(shù) -f
帶了參數(shù)-f時(shí),無論目標(biāo)文件或目錄是否存在。
參數(shù)-i
帶了參數(shù)-i時(shí),會(huì)詢問用戶是否覆蓋文件