Install Tac On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS
Maintainer: Michael Stone
Email: [email protected] .
Website: https://gnu.org/software/coreutils
Section: utils
Install tac
-
Debian
apt-get install coreutilsClick to copy -
Ubuntu
apt-get install coreutilsClick to copy -
Alpine OS
apk add coreutilsClick to copy -
Arch Linux
pacman -S coreutilsClick to copy -
Kali Linux
apt-get install coreutilsClick to copy -
CentOS
yum install coreutilsClick to copy -
Fedora
dnf install coreutilsClick to copy -
Raspbian
apt-get install coreutilsClick to copy -
macOS
brew install coreutilsClick to copy
Print and concatenate files in reverse.
How to use tac?
Below are few example commands for tac that you can use in the terminal.
Print the contents of *file1* reversed to the standard output:tac file1Click to copyConcatenate several files reversed into the target file:tac file1 file2 > target_fileClick to copy
Installation of latest tac command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.




