TRUNCATE Commands Cheat Sheet

Here is a cli commands cheat sheet for TRUNCATE command, you can use this as a quick reminder for basic commands with a brief description for each of the commands.

What is TRUNCATE command?

Add some data here

        # To clear the contents from :
truncate -s 0 

# To truncate  to 100 bytes:
truncate -s 100 

# To truncate  to 100 KB:
truncate -s 100K 

# (M, G, T, P, E, Z, and Y may be used in place of "K" as required.)
    

Check out the TRUNCATE command documentation .


You can also check our MegaSh cheatsheet tool, that has 150+ searchable linux cheat sheets in one page, so you never forget a command as you work again

Check Also

Best AI tools list