LinuxCommandLibrary

sizeof

Get the byte size of strings, URLs, and files

TLDR

Get the byte size of a string
$ sizeof "[hello world]"
copy
Get the size of a webpage
$ sizeof "[https://example.com]"
copy
Get the size of a local file
$ sizeof [/path/to/file.html]
copy

SYNOPSIS

sizeof input

DESCRIPTION

sizeof is a command-line tool that tells you the size of strings, URLs, and files in bytes and human-readable terms. You pass it arbitrary strings, URLs, or file paths and it returns a breakdown of the size.

HISTORY

sizeof was created by Zachary Proser (zackproser) and is written in Go.

SEE ALSO

wc(1), du(1), stat(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard