![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| "sed" to check file size & echo " " to destination file | jockey007 | Shell Programming and Scripting | 6 | 11-13-2007 05:00 PM |
| Maximum input file size in "Diff" Command | Neeraja | UNIX for Dummies Questions & Answers | 1 | 01-17-2007 06:09 AM |
| Can I make "touch" create executable files by manipulating umask? | tphyahoo | Shell Programming and Scripting | 1 | 06-07-2006 12:23 PM |
| Strange "TOUCH" problem | budrito | UNIX for Advanced & Expert Users | 3 | 10-29-2005 05:34 AM |
| Command for "Resident memory Size" | Cristobal Perez | UNIX for Dummies Questions & Answers | 1 | 06-07-2002 04:11 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi All,
I'm trying to find a command like similar to "touch" which would let me change the file size property. For ex: I have a file of size 1MB using the command i would like to set/update the size something like 1KB. Is it possible? Is there any such command which would accomplish this task for me? Kindly suggest. Regards, Harsha |
| Forum Sponsor | ||
|
|
|
|||
|
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 |