由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - 请教怎样使用tar压文件
相关主题
Help please: 2GB limit on file sizecompare which file is newer
How to gzip a directory directly ?[转载] compare
How to creat .tar.gz?怎么样循环执行一个命令?
Remove core.xxxx files?a question about shell quote
*.ps.gz??请问unix/Linux中设置共享目录
怎么把一个文件的每一行合并到另外一个文件的对应行?diff -y: how to suppress the same lines?
Help! How to replace string in a variable?question about appending file
怎样将一个大文件分成两个文件?shell script for column operation
相关话题的讨论汇总
话题: tar话题: file话题: name话题: directory话题: manual
进入Unix版参与讨论
1 (共1页)
s******n
发帖数: 99
1
项目做完了,老板要偶把所有程序做成一个package,在用gzip之前
得先用tar把几个目录的所有文件压成一个文件,请问怎么写命令?
q***e
发帖数: 90
2
Just type "man tar", that all you nee
to do. If you are really lazy, just ask one
of your fellow to read the manual and do it
for you. It takes only a few minutes. A simple
command might be:
tar cvf name.tar file1 files2 ...
Where files1 , file2 is the file/directory name
you want to tar. EVerything could be found from teh
manual.

【在 s******n 的大作中提到】
: 项目做完了,老板要偶把所有程序做成一个package,在用gzip之前
: 得先用tar把几个目录的所有文件压成一个文件,请问怎么写命令?

s******n
发帖数: 99
3
I do have read the damned manual for times, and have follow its instruction,
but the system always shows it cannot find some file in /dev****
And I have asked my fellows in lab, they all acted as if this is too simple
and said "go to read man tar". But when I drag them to the computer, not a
single guy could tar the files correctly for me.
So I come to unknown space, but still...
Anyway, hope yr words work. Thanx!

【在 q***e 的大作中提到】
: Just type "man tar", that all you nee
: to do. If you are really lazy, just ask one
: of your fellow to read the manual and do it
: for you. It takes only a few minutes. A simple
: command might be:
: tar cvf name.tar file1 files2 ...
: Where files1 , file2 is the file/directory name
: you want to tar. EVerything could be found from teh
: manual.

m**h
发帖数: 9
4
I hate man page too. At least it should be html file.
If you are sure your tar application is OK
to extract tar file
tar -xvzf tar_file_name
or
tar -xvf tar_file_name
to creat tar file
tar -cvzf tar_file_name directory_name
or
tar -cvf tar_file_name directory
When you have z as one of parameters you use gzip to compress the file too.

【在 s******n 的大作中提到】
: I do have read the damned manual for times, and have follow its instruction,
: but the system always shows it cannot find some file in /dev****
: And I have asked my fellows in lab, they all acted as if this is too simple
: and said "go to read man tar". But when I drag them to the computer, not a
: single guy could tar the files correctly for me.
: So I come to unknown space, but still...
: Anyway, hope yr words work. Thanx!

1 (共1页)
进入Unix版参与讨论
相关主题
shell script for column operation*.ps.gz??
请教一个文件处理的问题怎么把一个文件的每一行合并到另外一个文件的对应行?
[转载] Why gzip, compress won't work for RM file?Help! How to replace string in a variable?
how to compress several file under unix怎样将一个大文件分成两个文件?
Help please: 2GB limit on file sizecompare which file is newer
How to gzip a directory directly ?[转载] compare
How to creat .tar.gz?怎么样循环执行一个命令?
Remove core.xxxx files?a question about shell quote
相关话题的讨论汇总
话题: tar话题: file话题: name话题: directory话题: manual