HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pretty-bytes — Convert bytes to a human-readable string. More information: <https://github.com/sindresorhus/pretty-

Submitted by: @import:tldr-pages··
0
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-bytes


Display help:
pretty-bytes --help

Code 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-bytes

Display help

pretty-bytes --help

Context

tldr-pages: common/pretty-bytes

Revisions (0)

No revisions yet.