首页 > 服务器 > SSH常用的命令

SSH常用的命令

2009年03月23号
查看评论 发表评论 2,594次浏览

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

页面: 1 2 3 4 5

类别服务器 标签
  1. 高手
    发表于 2009年03月31号 12时29分22秒 | 1楼

    使用SCP文件内部传送:
    scp 文件名 root@IP:路径

  2. paul smith Scarves
    发表于 2010年06月24号 02时04分37秒 | 2楼

    This is a fine example.

  3. nike airforce
    发表于 2010年06月25号 20时53分11秒 | 3楼

    Hi I just came across quest experience I am looking forward to reading it tomorrow

  4. Herve Leger Dresses
    发表于 2010年06月26号 21时52分29秒 | 4楼

    Thanks online editor. We love it.

  5. timberland 6 inch boots
    发表于 2010年07月01号 11时27分54秒 | 5楼

    How comforting for you

  6. Mens Lacoste Shoes
    发表于 2010年07月10号 13时28分45秒 | 6楼

    Even though it will not be here tomorrow, the effect of it will.

  7. timberland boot
    发表于 2010年07月19号 20时52分22秒 | 7楼

    A nice life you have described

  8. lebron 6
    发表于 2010年07月20号 09时32分19秒 | 8楼

    I think you are right.

  9. MBT Walking Shoes
    发表于 2010年07月25号 14时35分43秒 | 9楼

    I was just scanning this posting and was reminded of what I once read.

  1. 目前没有通告
你必需 登陆 才能发表评论.