The UNIX and Linux Forums
>
Top Forums
>
UNIX for Advanced & Expert Users
Command similar to "touch" for modify File size
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
Command similar to "touch" for modify File size
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
11-14-2007
bakunin
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
bakunin
View Public Profile
Find all posts by bakunin