24

描述下linux中经常使用的网络拷贝命令

 5 years ago
source link: https://www.linuxprobe.com/linux-web-cope.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
导读 通常情况下,在linux中拷贝文件使用cp命令,这个可以在linux系统中随便试(用普通用户尝试命令,一般情况下是不会坏系统的。)

但是,如果多台计算机之间互相传输的情况下,就不再使用linux中的cp命令了。而是可以使用如下方式:


nfs,网络文件系统 network file system。就相当于windows的文件共享。
scp命令,例如scp -r x,其中-r表示递归,拷贝x目录下的所有文件到另外一台机器。scp -r x/ [email protected]......:/home,不仅如此,而且可以通过scp将文件从远程连接到机器,拷贝到本机。

另外在文件修改过程中可能还会用到mv命令,mv 1.txt 2.txt重命名


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK