linux基礎unit12練習題

1.在server主機中把/etc目錄打包壓縮到/mnt中,名字爲etc.tar.gz
[root@localhost Desktop]$ tar zcf etc.tar.gz /etc
[root@localhost Desktop]$ mv etc.tar.gz /mnt


2.複製server主機中的etc.tar.gz到desktop主機的/mnt中
[root@localhost Desktop]$ tar zcf etc.tar.gz /etc
[root@localhost Desktop]$ scp etc.tar.gz [email protected]:/mnt


3.同步server主機中的/etc中的所有文件到desktop主機的/mnt中,包含鏈接文件
[root@localhost Desktop]$ rsync -rl etc.tar.gz [email protected]:/mnt
發佈了41 篇原創文章 · 獲贊 3 · 訪問量 8739
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章