linux替换原来文件的命令

如题所述

可以使用 Linux 系统的拷贝命令 cp,对原来的文件进行替换。例如:
$cp newfile oldfile
该命令的作用就是使用现在 newfile 的内容,替换掉原来 oldfile 的内容。
温馨提示:答案为网友推荐,仅供参考
相似回答