The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 11-14-2007
bakunin bakunin is online now
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,292
Exactly, Yogesh.

To expand a bit on this: if you want to keep the inode number, but don't care about the content use dd:

dd if=/dev/zero of=/your/file bs=<nr of bytes the file should have> count=1

bakunin
Reply With Quote