LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pretty-bytes

Convert byte values to human-readable strings

TLDR

Convert bytes to human readable
$ pretty-bytes [1024]
copy
Convert from stdin
$ echo [1048576] | pretty-bytes
copy
Convert large values
$ pretty-bytes [1099511627776]
copy

SYNOPSIS

pretty-bytes bytes

DESCRIPTION

pretty-bytes converts raw byte values into human-readable strings with appropriate unit suffixes (kB, MB, GB, TB, etc.). It automatically selects the best unit for readability, making large numbers easier to understand at a glance.This Node.js CLI utility is useful in scripts and pipelines where file sizes or data amounts need to be displayed in a user-friendly format rather than as raw numbers.

PARAMETERS

BYTES

Byte value to convert.

INSTALL

sudo dnf install pretty-bytes
copy

CAVEATS

Uses binary prefixes. Node.js package.

HISTORY

pretty-bytes was created as a Node.js utility for byte formatting.

SEE ALSO

numfmt(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid