• CIN will be sunsetting the official CIN app! The app will be turned off on Saturday, August 1st. Thank you to everyone who used the app to post updates. It just was not adopted as much as hoped. This is ONLY the mobile app. The CIN community is not being affected. :)

Have you EVER heard of or used the tac command?

Shea Bennett

Well-known member
  • Dec 18, 2024
    106
    92
    6,421
    Beltsville, MD
    www.sheastech.io
    Amazing session for the new Linux+ v.8 (006) exam TTT session today 9/11/2025.

    Jason went over the tac command and many other options. I'm not even embarrassed to say I have never used the tac command or searched in files with grep. Excellent and eye opening session. I truly and completely appreciate going back to the roots and fundamentals. One thing I will say about Linux I truly love and enjoy. You never stop learning!
     
    I've never used the tac command. I know it, just never used it.

    The common commands I use for viewing the contents of a file are cat, less, more, head, tail, nano and vim. All of the commands I've mentioned are in the exam objectives for Linux+. I'm not sure about tac.

    grep is a command that is very common in many of the CompTIA exams whether, it'd be for Linux+, Security+, CySA+, Pentest+ and even SecurityX (formerly CASP+). I personally use grep in many scripts.

    aside from grep, I also suggest knowing sed and awk
     
    • Like
    Reactions: Fanuel and Masiku01
    aside from grep, I also suggest knowing sed and awk
    There's definitely no shortage of text tools on Linux. Tools like awk, sed, cut, paste, nl, etc. are lumped into next Thursday's TTT on the shell because they are often used alongside redirection, and they’re easier to introduce a bit later in the course, once students have some shell basics under their belt :)

    Although not on Linux+, you can also install the bat command (e.g., dnf install bat), which is a nice alternative to cat/tac and more.
     
    Last edited:
    Honestly, I’ve never really used “tac”, even though I know it exists — probably because I’m not a big fan of “cat” in the first place (sorry, cat lovers).
    Instead, I’m more of a “less” person. Why? Because it lets me search, scroll forward, AND go back — basically, it’s like having superpowers in the terminal.
    And the best part? “less” sneaks in a bunch of vi-like tricks. So if you’re already comfortable with vi (or vim for the cool kids), you’ll probably join me in the Team Less fan club.
     
    • Like
    Reactions: ISAAC ADEKANYE