---
name: "size"
section: "1"
platform: "openbsd"
package: "man"
version: "8.0-current-20261101"
release: "OpenBSD 8.0-current (2026-11-01)"
platforms: ["linux", "freebsd", "openbsd"]
url: "https://new.carta.tech/size"
---

# size(1)

display object file segment sizes (text, data and bss)

## NAME

**size** – display object file segment sizes (text, data and bss)

## SYNOPSIS

**size** \[**-tw**\] \[*file ...*\]

## DESCRIPTION

**size** displays the text, data and bss segment sizes of the specified *file(s)* in bytes (in decimal), and the sum of the three segments (in decimal and hexadecimal). If a library (archive) is given, **size** displays the segment sizes for each object archive member. If no *file* is specified, **size** attempts to report on the file *a.out*.

The options are as follows:

- **-t**

  At the end of the output print a total of the sizes of all the object files processed.

- **-w**

  Warn about non-object archive members. Normally, **size** will silently ignore all archive members which are not object files.

## SEE ALSO

[nm(1)](/nm/1.md), [elf(5)](/elf/5.md)

## HISTORY

A **size** command appeared in Version 3 AT&T UNIX.
