From 3f177fe7d668cb7d0244d3df0b644c18ec388083 Mon Sep 17 00:00:00 2001 From: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Date: Fri, 28 Jun 2024 14:41:13 +0200 Subject: [PATCH] truncate: add Dutch translation and fix placeholders (#13186) --- pages.nl/common/truncate.md | 24 ++++++++++++++++++++++++ pages/common/truncate.md | 10 +++++----- 2 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 pages.nl/common/truncate.md diff --git a/pages.nl/common/truncate.md b/pages.nl/common/truncate.md new file mode 100644 index 0000000000..15f132b942 --- /dev/null +++ b/pages.nl/common/truncate.md @@ -0,0 +1,24 @@ +# truncate + +> Verkort of verleng de grootte van een bestand naar de opgegeven grootte. +> Meer informatie: . + +- Stel een grootte van 10 GB in voor een bestaand bestand, of maak een nieuw bestand met de opgegeven grootte: + +`truncate --size 10G {{pad/naar/bestand}}` + +- Verleng de bestandsgrootte met 50 MiB, vul met gaten (die lezen als null bytes): + +`truncate --size +50M {{pad/naar/bestand}}` + +- Verkort het bestand met 2 GiB door gegevens van het einde van het bestand te verwijderen: + +`truncate --size -2G {{pad/naar/bestand}}` + +- Leeg de inhoud van het bestand: + +`truncate --size 0 {{pad/naar/bestand}}` + +- Leeg de inhoud van het bestand, maar maak het bestand niet aan als het niet bestaat: + +`truncate --no-create --size 0 {{pad/naar/bestand}}` diff --git a/pages/common/truncate.md b/pages/common/truncate.md index d5fd62086a..d466c277c8 100644 --- a/pages/common/truncate.md +++ b/pages/common/truncate.md @@ -5,20 +5,20 @@ - Set a size of 10 GB to an existing file, or create a new file with the specified size: -`truncate --size {{10G}} {{filename}}` +`truncate --size 10G {{path/to/file}}` - Extend the file size by 50 MiB, fill with holes (which reads as zero bytes): -`truncate --size +{{50M}} {{filename}}` +`truncate --size +50M {{path/to/file}}` - Shrink the file by 2 GiB, by removing data from the end of file: -`truncate --size -{{2G}} {{filename}}` +`truncate --size -2G {{path/to/file}}` - Empty the file's content: -`truncate --size 0 {{filename}}` +`truncate --size 0 {{path/to/file}}` - Empty the file's content, but do not create the file if it does not exist: -`truncate --no-create --size 0 {{filename}}` +`truncate --no-create --size 0 {{path/to/file}}`