Documentation

tac – concatenate and print files in reverse

The GNU Core Utilities or coreutils is a package of software containing implementations for many of the basic tools, such as cat, ls, and rm, which are used on Unix-like operating systems.

One of the other utilities included with coreutils is tac. It concatenates and prints files in reverse.

tac is the reverse of cat.

We can pipe the output of tac to tac to reproduce what cat does. $ tac / file | tac

This is free and open source software.

Website: www.gnu.org/software/coreutils
Support:
Developer: Free Software Foundation, Inc
License: GNU General Public License v3.0

Man page for tac

tac is written in C. Learn C with our recommended free books and free tutorials.


Related Software

Alternatives to cat
batSuper charged cat - Features in our Top 100 CLI Apps
mdcatSophisticated Markdown rendering for the terminal - Features in our Top 100 TUI Apps
grcatFrontend for generic colouriser grc
tacConcatenate and print files in reverse
ccatColorizing cat
seeCute cat replacement
lolcatAdd some zest to the cat command. Features in our Linux Candy series
katcat command that almost tastes like chocolate
meowRenders text using your existing Neovim configuration
mcatExtended cat command
batdoccat for Office documents and PDFs
umberDesigned to replace cat for reading source code and other text files
rucatAimed at developers and system administrators
peekMulti-buffer terminal pager
Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments