On Tue, 24 Aug 1999, Keith Robinson wrote:

> On Tue, 24 Aug 1999, Ted Gervais wrote:
> 
> > 
> > That is what I thought; files in /proc dir are virtual files and do not
> > occupy any real disk space. However, when I copied that file over to
> > another directory I saw that it indeed was 134 megs large? HOw is that
> > possible.
> > 
> 
> was the other directory on the same fs/partition as / ? if so, I
> don't think copying actually writes a new file but simply adds a
> new link, or increases the link count by one.

cp ALWAYS makes a copy. You are thinking about mv, which just moves a
link.

> so, here is a real basic question maybe a lot of newbies have: what
> really happens when we copy a file in linux within the same
> partition?

You end up with two distinct copies of the file

Frank 
> 
> 
> >  --
> > Ted Gervais <[EMAIL PROTECTED]>
> > 44.135.34.254 gw.ve1drg.ampr.org
> -- 
> --
> Keith Robinson
> kmail 1.0.024
> RH Linux 6.0 kernel 2.2.11
> 

HI! I'm a .signature virus! cp me into your .signature file to help me spread!

Reply via email to