This is a discussion on Simple Q about tar and gzip ! within the Linux Administration forums, part of the Linux Forums category; Hi~ First, Thanks for your interest about this article. And the spec of my Linux box is bellow. CPU : Intel ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi~
First, Thanks for your interest about this article. And the spec of my Linux box is bellow. CPU : Intel Celeron 466 MHz RAM : 128 MB SDRAM Kernel Version : 2.4.18 tar version : (GNU tar) 1.13.25 gzip version : 1.3.3 Second, my rediculous Q is started... because of the log backup, I typed commands. ]# pwd /var/log ]# tar cvfz log0624.tar.gz ./ .......... ]# ls log0624.tar.gz log0624.tar.gz ]# I thought.... it's ok without doubt. However, I typed one more time from my curiosity. ]# pwd /var/log ]# mv log0624.tar.gz /backup ]# ls log0624.tar.gz ls: log0624.tar.gz; No such ifle or directory ]# ]# tar cvfz log0624-2.tar.gz ./* ..... ]# There was a difficult Q in my output. That is ... The file "log0624.tar.gz " is different from the file 'log0624-2.tar.gz". WHAT is the difference? ...........the size of two files. WHY? WHY NOT? Sorry, I don't know about it. Are U OK? let's go with me.... PLEASE... IT is not BIG stuff, BUT I have a racking headache...WOW... summarized... ]# tar cvfz aaa.tar.gz ./ ]# tar cvfz aaa.tar.gz ./* ]# tar cvfz aaa.tar.gz ./*.* Send me e-mail or posting.... PLEASE~~~ PLz~~~ ^^ Have a nice day~ and SEE U ps. Dont say goodbye and say to see U again. ################################### suandyou (linuxlover) Department of Physics University of Seoul Seoul, Republic of KOREA e-mail : suandyou1980@hanmail.net http://linuxlover.home.uos.ac.kr Phone : +82-19-362-1980 ################################### |
|
|||
|
On 24 Jun 2003 08:54:58 -0700, linuxlover
<suandyou1980@hanmail.net> wrote: > Hi~ > First, Thanks for your interest about this article. > > And the spec of my Linux box is bellow. > > CPU : Intel Celeron 466 MHz > RAM : 128 MB SDRAM > Kernel Version : 2.4.18 > tar version : (GNU tar) 1.13.25 > gzip version : 1.3.3 > > > Second, my rediculous Q is started... > > because of the log backup, I typed commands. > > ]# pwd > /var/log > ]# tar cvfz log0624.tar.gz ./ > ......... > ]# ls log0624.tar.gz > log0624.tar.gz > ]# > > I thought.... it's ok without doubt. > You didn't try "ls -l" or "tar tzf"? > However, I typed one more time from my curiosity. > > ]# pwd > /var/log > ]# mv log0624.tar.gz /backup > ]# ls log0624.tar.gz > ls: log0624.tar.gz; No such ifle or directory > ]# > ]# tar cvfz log0624-2.tar.gz ./* > .... > ]# > > There was a difficult Q in my output. > > That is ... > The file "log0624.tar.gz " is different from the file 'log0624-2.tar.gz". > WHAT is the difference? > ..........the size of two files. > > WHY? WHY NOT? Because some log files changed between the time of the two tar commands? Because "./*" does not include files that begin with "."? > Sorry, I don't know about it. > Are U OK? let's go with me.... PLEASE... > > IT is not BIG stuff, BUT I have a racking headache...WOW... > > summarized... > ]# tar cvfz aaa.tar.gz ./ > ]# tar cvfz aaa.tar.gz ./* > ]# tar cvfz aaa.tar.gz ./*.* > In WinDOS, "*.*" matches all files. In Linux, "*.*" matches files that have one or more "." in their names, but not files that begin with "." -- It is often the case that the man who can't tell a lie thinks he is the best judge of one. -- Mark Twain, "Pudd'nhead Wilson's Calendar" |
![]() |
| Thread Tools | |
| Display Modes | |
|
|