tac command

0001-01-01

The tac command is similar to the cat command, but outputs lines in reverse order:

daniel@wildcat ~ % cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"

daniel@wildcat ~ % tac /etc/lsb-release
DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"
DISTRIB_CODENAME=focal
DISTRIB_RELEASE=20.04
DISTRIB_ID=Ubuntu

Links to this note