snippetbashTip
pretty-bytes — Convert bytes to a human-readable string. More information: <https://github.com/sindresorhus/pretty-
Viewed 0 times
commandpretty-bytesreadableconvertbytesclistringhuman
Problem
How to use the
pretty-bytes command: Convert bytes to a human-readable string. More information: <https://github.com/sindresorhus/pretty-bytes-cli>.Solution
pretty-bytes — Convert bytes to a human-readable string. More information: <https://github.com/sindresorhus/pretty-bytes-cli>.Convert numeric bytes value to a human-readable string:
pretty-bytes {{1337}}Convert numeric bytes value from
stdin to a human-readable string:echo {{1337}} | pretty-bytesDisplay help:
pretty-bytes --helpCode Snippets
Convert numeric bytes value to a human-readable string
pretty-bytes {{1337}}Convert numeric bytes value from `stdin` to a human-readable string
echo {{1337}} | pretty-bytesDisplay help
pretty-bytes --helpContext
tldr-pages: common/pretty-bytes
Revisions (0)
No revisions yet.