SSH常用的命令
4. tar命令
tar命令的使用方法如下:
tar [参数列表] [文件名]
参数列表:
-c 生成新的备份,并同时覆盖旧的备份文件
-x 从备份文件中解压缩
-t 列出备份文件内的文件目录
-v 显示所有被操作文件列表
-f 在指定位置生成备份
-u 将不存在于备份中的文件,或将已经被更改的文件加入该备份中。
举例说明:
tar cvf filename.tar
tar cvf tarfile.tar ./filename
tar tvf filename.tar
tar xvf filename.tar
tar zxpvf filename.tar.gz
tar zxvf filename.tar.gz
tar xvf tarfile.tar ./filename
使用SCP文件内部传送:
scp 文件名 root@IP:路径
This is a fine example.
Hi I just came across quest experience I am looking forward to reading it tomorrow
Thanks online editor. We love it.
How comforting for you
Even though it will not be here tomorrow, the effect of it will.
A nice life you have described
I think you are right.
I was just scanning this posting and was reminded of what I once read.