cat path/to/file/filename1 >> path/to/file/filename2

例如:

cat id_rsa.pub >> ~/.ssh/authorized_keys

可以把文件id_rsa.pub的内容增加到authorized_keys文件的尾部

相关文章: