Re: File size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am So, 2004-08-08 um 13.44 schrieb Roberto Vanto:
> Anindya Mozumdar ha scritto:
> > Hi,
> >    How can I make a file zero length without deleting the contents of
> >    the file manually through an editor ?
> > Anindya.
> > -
> 
> man touch
> 
> touch foo

touch changes the timestamp if the file exists. It sounds like the file
already exists. btw, You don't need to delete it through an editor, "rm
foo ; touch foo" would do it, too. ;-)

> 
> -
> : send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 

-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux