From fc8e97a9d3f718346d123d95207ac2bcc636a500 Mon Sep 17 00:00:00 2001 From: Dylan <145150333+dmmqz@users.noreply.github.com> Date: Thu, 12 Feb 2026 12:54:13 +0000 Subject: [PATCH] git-difftool, fallocate, vmstat: fix placeholders, improve examples (#21094) --- pages/common/git-difftool.md | 6 +++--- pages/linux/fallocate.md | 8 ++++---- pages/linux/vmstat.md | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pages/common/git-difftool.md b/pages/common/git-difftool.md index e0eb3736ec..77c78384a8 100644 --- a/pages/common/git-difftool.md +++ b/pages/common/git-difftool.md @@ -8,14 +8,14 @@ `git difftool --tool-help` -- Set the default diff tool to meld: +- Set the default diff tool to Meld: -`git config --global diff.tool "{{meld}}"` +`git config --global diff.tool "meld"` - Use the default diff tool to show staged changes: `git difftool --staged` -- Use a specific tool (opendiff) to show changes since a given commit: +- Use a specific tool to show changes since a given commit: `git difftool {{[-t|--tool]}} {{opendiff}} {{commit}}` diff --git a/pages/linux/fallocate.md b/pages/linux/fallocate.md index 1fb47e6558..283a2aaf8e 100644 --- a/pages/linux/fallocate.md +++ b/pages/linux/fallocate.md @@ -6,12 +6,12 @@ - Reserve a file taking up 700 MiB of disk space: -`fallocate {{[-l|--length]}} {{700M}} {{path/to/file}}` +`fallocate {{[-l|--length]}} 700M {{path/to/file}}` -- Shrink an already allocated file by 200 MiB: +- Shrink an already allocated file by 200 MB: -`fallocate {{[-c|--collapse-range]}} {{[-l|--length]}} {{200M}} {{path/to/file}}` +`fallocate {{[-c|--collapse-range]}} {{[-l|--length]}} 200MB {{path/to/file}}` - Shrink 20 MB of space after 100 MiB in a file: -`fallocate {{[-c|--collapse-range]}} {{[-o|--offset]}} {{100M}} {{[-l|--length]}} {{20M}} {{path/to/file}}` +`fallocate {{[-c|--collapse-range]}} {{[-o|--offset]}} 100M {{[-l|--length]}} 20M {{path/to/file}}` diff --git a/pages/linux/vmstat.md b/pages/linux/vmstat.md index db5cd3fea5..9f099465e3 100644 --- a/pages/linux/vmstat.md +++ b/pages/linux/vmstat.md @@ -9,4 +9,4 @@ - Display reports every 2 seconds for 5 times: -`vmstat {{2}} {{5}}` +`vmstat 2 5`