mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-02 16:54:49 +00:00
Update cheatsheets
This commit is contained in:
@@ -10,12 +10,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Convert 1.5K (SI Units) to 1500:
|
||||
|
||||
`numfmt --from=si 1.5K`
|
||||
`numfmt --from si 1.5K`
|
||||
|
||||
- Convert 5th field (1-indexed) to IEC Units without converting header:
|
||||
|
||||
`ls -l | numfmt --header=1 --field=5 --to=iec`
|
||||
`ls -l | numfmt --header=1 --field 5 --to iec`
|
||||
|
||||
- Convert to IEC units, pad with 5 characters, left aligned:
|
||||
|
||||
`du -s * | numfmt --to=iec --format="%-5f"`
|
||||
`du {{[-s|--summarize]}} * | numfmt --to iec --format "%-5f"`
|
||||
|
||||
Reference in New Issue
Block a user