tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Linux truncate(1) equivalent?



> Do we have an équivalent of Linux truncate(1)? It calls truncate(2)
> to resize a file.
>
> I tried dd with seek with no success.

Works for me:

        fortune -l > xx
        dd bs=1 seek=10 if=/dev/null of=xx
        ls -l xx ; od -a xx

                                                        Martin


Home | Main Index | Thread Index | Old Index