avatar
请教怎样使用tar压文件# Unix - 噫吁兮,危乎高哉
s*n
1
项目做完了,老板要偶把所有程序做成一个package,在用gzip之前
得先用tar把几个目录的所有文件压成一个文件,请问怎么写命令?
avatar
q*e
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把几个目录的所有文件压成一个文件,请问怎么写命令?

avatar
s*n
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.

avatar
m*h
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!

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。