mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
git-difftool, fallocate, vmstat: fix placeholders, improve examples (#21094)
This commit is contained in:
@@ -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}}`
|
||||
|
||||
@@ -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}}`
|
||||
|
||||
@@ -9,4 +9,4 @@
|
||||
|
||||
- Display reports every 2 seconds for 5 times:
|
||||
|
||||
`vmstat {{2}} {{5}}`
|
||||
`vmstat 2 5`
|
||||
|
||||
Reference in New Issue
Block a user