Update truncate.md (#3710)

* Update truncate.md

Empty a file's content command, fix missing closing bracket on "Shrink the file by 2GiB" example.

* Add missing empty line and fix the article

Co-authored-by: Zlatan Vasović <zlatanvasovic@gmail.com>
client-spec/clarity
Nir Elbaz 2019-12-30 14:41:06 +02:00 committed by Zlatan Vasović
parent 64ecf11238
commit 4e5395df2c
1 changed files with 5 additions and 1 deletions

View File

@ -12,4 +12,8 @@
- Shrink the file by 2GiB, by removing data from the end of file:
`truncate -s -{{2G}} {{filename}`
`truncate -s -{{2G}} {{filename}}`
- Empty the file's content:
`truncate -s 0 {{filename}}`