• outdated_belated@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    14
    ·
    2 years ago

    Holy shit the reason for tee never really clicked until I saw this post. I’d used it in pasted commands, but it had always seemed superfluous.

      • SteveTech
        link
        fedilink
        English
        arrow-up
        13
        ·
        2 years ago

        It writes to a file like >, and echos it back at the same time; in this case the latter isn’t needed (we’re just using it to write with sudo), but it’s good to know.