打包文件/etc/hosts /etc/passwd 放入/opt目录下 名称为all.tar.gz
问:打包文件/etc/hosts /etc/passwd 放入/opt目录下 名称为all.tar.gz 答: tar -zcvf /opt/all.tar.gz /etc/hosts /etc/passwd ![](http://static.51tbox.com/static/2024-08-29/col/d27ef4d5f7628486b81fc3740490c745...
问:打包文件/etc/hosts /etc/passwd 放入/opt目录下 名称为all.tar.gz 答: tar -zcvf /opt/all.tar.gz /etc/hosts /etc/passwd ![](http://static.51tbox.com/static/2024-08-29/col/d27ef4d5f7628486b81fc3740490c745...