I can understand the statements like.
bzip2 --version >/tmp/list_right 2>/tmp/list_error
bzip2 --version >/tmp/list 2>&1
But I don't understand the statement:
bzip2 --version 2>&1 < /dev/null | head -n1
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community