show what versions of object modules were used to construct a file
NAME
what – show what versions of object modules were used to construct a file
SYNOPSIS
what [-qs] [file ...]
DESCRIPTION
The what utility searches each specified file for sequences of the form “@(#)” as inserted by the SCCS source code control system. It prints the remainder of the string following this marker, up to a NUL character, newline, double quote, ‘>’ character, or backslash.
The following options are available:
-q
Only output the match text, rather than formatting it.
-s
Stop searching each file after the first match.
EXIT STATUS
Exit status is 0 if any matches were found, otherwise 1.
The what utility conforms to IEEE Std 1003.1-2001 (“POSIX.1”). The -q option is a non-standard FreeBSD extension which may not be available on other operating systems.
HISTORY
The what command appeared in 4.0BSD.
BUGS
This is a rewrite of the SCCS command of the same name, and behavior may not be identical.
History
FreeBSD 16.0-CURRENT (2026-10-27) to FreeBSD 15.0-RELEASE: the text shown here
FreeBSD 14.5-RELEASE to FreeBSD 13.3-RELEASE
FreeBSD 13.2-RELEASE to FreeBSD 13.0-RELEASE
FreeBSD 12.4-RELEASE
FreeBSD 12.3-RELEASE
FreeBSD 12.2-RELEASE
FreeBSD 12.1-RELEASE
FreeBSD 12.0-RELEASE
FreeBSD 11.4-RELEASE
FreeBSD 11.3-RELEASE
FreeBSD 11.2-RELEASE
FreeBSD 11.1-RELEASE
FreeBSD 11.0-RELEASE
FreeBSD 10.4-RELEASE
FreeBSD 10.3-RELEASE
FreeBSD 10.2-RELEASE
FreeBSD 10.1-RELEASE
FreeBSD 10.0-RELEASE
FreeBSD 9.3-RELEASE
FreeBSD 9.2-RELEASE
FreeBSD 9.1-RELEASE
FreeBSD 9.0-RELEASE
FreeBSD 8.4-RELEASE
FreeBSD 8.3-RELEASE
FreeBSD 8.2-RELEASE
FreeBSD 8.1-RELEASE
FreeBSD 8.0-RELEASE
FreeBSD 7.4-RELEASE
FreeBSD 7.3-RELEASE
FreeBSD 7.2-RELEASE
FreeBSD 7.1-RELEASE
FreeBSD 7.0-RELEASE
FreeBSD 6.4-RELEASE
FreeBSD 6.3-RELEASE to FreeBSD 6.0-RELEASE
FreeBSD 5.5-RELEASE to FreeBSD 5.3-RELEASE
FreeBSD 5.2.1-RELEASE to FreeBSD 5.0-RELEASE
FreeBSD 4.11-RELEASE to FreeBSD 4.4-RELEASE
FreeBSD 4.3-RELEASE to FreeBSD 4.0-RELEASE
FreeBSD 3.5.1-RELEASE to FreeBSD 3.3-RELEASE
FreeBSD 3.2-RELEASE to FreeBSD 3.0-RELEASE
FreeBSD 2.2.9-RELEASE
FreeBSD 2.2.8-RELEASE to FreeBSD 2.2.7-RELEASE
FreeBSD 2.2.6-RELEASE to FreeBSD 2.2.5-RELEASE
FreeBSD 2.2.2-RELEASE
FreeBSD 2.1.7.1-RELEASE to FreeBSD 2.0.5-RELEASE
-q since FreeBSD 6.0-RELEASE;
-s since FreeBSD 2.2.7-RELEASE.