mirror of
https://github.com/Erreur32/cheat.git
synced 2025-01-03 11:32:17 +01:00
11 lines
242 B
Text
11 lines
242 B
Text
|
To clear the contents from a file:
|
||
|
truncate -s 0 file.txt
|
||
|
|
||
|
To truncate a file to 100 bytes:
|
||
|
truncate -s 100 file.txt
|
||
|
|
||
|
To truncate a file to 100 KB:
|
||
|
truncate -s 100K file.txt
|
||
|
|
||
|
(M, G, T, P, E, Z, and Y may be used in place of "K" as required.)
|