mirror of https://github.com/CrimsonTome/tldr.git
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
parent
64ecf11238
commit
4e5395df2c
|
@ -12,4 +12,8 @@
|
||||||
|
|
||||||
- Shrink the file by 2GiB, by removing data from the end of file:
|
- 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}}`
|
||||||
|
|
Loading…
Reference in New Issue