From 4e5395df2c3059448d0af76e246af47c75e0d6c2 Mon Sep 17 00:00:00 2001 From: Nir Elbaz Date: Mon, 30 Dec 2019 14:41:06 +0200 Subject: [PATCH] Update truncate.md (#3710) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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ć --- pages/common/truncate.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/common/truncate.md b/pages/common/truncate.md index 6112b574a..199247dec 100644 --- a/pages/common/truncate.md +++ b/pages/common/truncate.md @@ -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}}`