You can use the truncate command to specify the size. For example, if you want to modify a file to n bytes then use the command truncate -s n filename and replace the filename and n with the one which you wanted to modify.