![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
LinkBacks (?)
LinkBack to this Thread: http://www.unix.com/unix-advanced-expert-users/45230-command-similar-touch-modify-file-size.html
|
||||
| Posted By | For | Type | Date | |
| yoga_sawant's Bookmarks on Delicious | This thread | Refback | 12-25-2008 09:44 AM | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| "sed" to check file size & echo " " to destination file | jockey007 | Shell Programming and Scripting | 7 | 04-28-2009 03:08 AM |
| Can I make "touch" create executable files by manipulating umask? | tphyahoo | Shell Programming and Scripting | 2 | 01-30-2009 04:20 PM |
| Maximum input file size in "Diff" Command | Neeraja | UNIX for Dummies Questions & Answers | 1 | 01-17-2007 10:09 AM |
| Strange "TOUCH" problem | budrito | UNIX for Advanced & Expert Users | 3 | 10-29-2005 09:34 AM |
| Command for "Resident memory Size" | Cristobal Perez | UNIX for Dummies Questions & Answers | 1 | 06-07-2002 08:11 PM |
![]() |
|
|
LinkBack (1) | Thread Tools | Search this Thread | Rate Thread | 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 |
|
||||
|
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 |
![]() |
| Bookmarks |
| Tags |
| touch |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|