Scroll to navigation

LINE(1) User Commands LINE(1)

NAME

line - read one line

SYNOPSIS

line [-h|-V]

DESCRIPTION

The utility line copies one line (up to a newline) from standard input to standard output. It always prints at least a newline and returns an exit status of 1 on EOF or read error.

OPTIONS

-h, --help

Display help text and exit.

-V, --version

Display version and exit.

SEE ALSO

read(1p)

REPORTING BUGS

For bug reports, use the issue tracker <https://github.com/util-linux/util-linux/issues>.

AVAILABILITY

The line command is part of the util-linux package which can be downloaded from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>.

2026-06-16 util-linux 2.42.2