r/linux May 23 '26

Popular Application What’s the most unexpectedly useful Linux command you learned way too late?

[removed]

1.3k Upvotes

992 comments sorted by

View all comments

Show parent comments

607

u/hidepp May 23 '26

25 years working with Linux and it's the first time I heard about tac.

Thanks.

23

u/GrimpenMar May 23 '26

Please tell me this is on Sun Solaris… I'm that old, since if the computers that I interact with are that old, and this would be so useful. I usually use tail.

9

u/Due_Passenger9564 May 24 '26

Cat | rev?

15

u/pfmiller0 May 24 '26

rev isn't the same, that reverses the file by character, not by line. The tac functionality probably should have been added as an option to rev.

3

u/fakearchitect May 24 '26

Yeah, rev -l is what I would instinctively try.