Open In App

tac command in Linux with Examples

tac command in Linux is used to concatenate and print files in reverse. This command will write each FILE to standard output, the last line first. When no file is specified then this command will read the standard input.


tac [OPTION]... [FILE]...

Example: It will print files in reverse.


Article Tags :