Simple Q about tar and gzip !

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


Go Back   Usenet Forums > Linux Forums > Linux Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-24-2003
linuxlover
 
Posts: n/a
Default Simple Q about tar and gzip !

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
###################################
Reply With Quote
  #2 (permalink)  
Old 06-26-2003
Bill Marcum
 
Posts: n/a
Default Re: Simple Q about tar and gzip !

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"
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:37 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0