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!
|
|