Voyager App Test
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
merari42@lemmy.world to Microblog Memes@lemmy.worldEnglish · 1 year ago

A dog is not the opposite of a cat

lemmy.world

message-square
110
link
fedilink
658

A dog is not the opposite of a cat

lemmy.world

merari42@lemmy.world to Microblog Memes@lemmy.worldEnglish · 1 year ago
message-square
110
link
fedilink
  • rc__buggy@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    23
    arrow-down
    1
    ·
    edit-2
    1 year ago

    tee isn’t exactly the opposite of cat but I can’t remember a command that only redirects screen output to a file.

    What is up, tee?

    edit: what’s the opposite of “cd …”?

    • SpaceNoodle@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 year ago

      cat is for concatenating files, so the opposite would be something that breaks a stream up into multiple files.

      • joranvar@feddit.nl
        link
        fedilink
        English
        arrow-up
        8
        ·
        edit-2
        1 year ago

        So, split.

        Edit: although there’s also tac, which could fit the bill as well.

        • rc__buggy@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

          Hah, forgot about tac

          • joranvar@feddit.nl
            link
            fedilink
            English
            arrow-up
            3
            ·
            1 year ago

            I mean… it’s nice that it exists and all, but I can’t really think of many useful usecases.

            • rc__buggy@sh.itjust.works
              link
              fedilink
              English
              arrow-up
              2
              ·
              1 year ago

              I think I only ever used it in an intro to shell scripting where we (almost) recreated the function of tail

              • joranvar@feddit.nl
                link
                fedilink
                English
                arrow-up
                2
                ·
                1 year ago

                Something like tac | head | tac, I guess? Yes, that’s a valid use case indeed :)

        • SpaceNoodle@lemmy.world
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

          Oh, you use Arch?

          • joranvar@feddit.nl
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 year ago

            Heh, no, but they do have a nice set of man pages and other documentation online. I prefer NixOS. Easier keeping track of configuration, easier rolling back of (and experimentation with) new stuff.

      • tetris11@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        1 year ago

        tac is a real command and does exactly what you think it is

    • zero_spelled_with_an_ecks@programming.dev
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago

      How about tac which prints lines but last to first.

    • jaybone@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      It prints to stdout. I’d say the opposite is read, which reads from stdin.

    • Karyoplasma@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Hmm, maybe pwd?

    • Trigger2_2000@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      pwd Print Working Directory

      • jaybone@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        There’s pushd where the opposite is clearly popd.

Microblog Memes@lemmy.world

microblogmemes@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !microblogmemes@lemmy.world

A place to share screenshots of Microblog posts, whether from Mastodon, tumblr, Twitter X, KBin, Threads or elsewhere.

Created as an evolution of White People Twitter and other tweet-capture subreddits.

RULES:

  1. Your post must be a screen capture of a microblog-type post that includes the UI of the site it came from, preferably also including the avatar and username of the original poster. Including relevant comments made to the original post is encouraged.
  2. Your post, included comments, or your title/comment should include some kind of commentary or remark on the subject of the screen capture. Your title must include at least one word relevant to your post.
  3. You are encouraged to provide a link back to the source of your screen capture in the body of your post.
  4. Current politics and news are allowed, but discouraged. There MUST be some kind of human commentary/reaction included (either by the original poster or you). Just news articles or headlines will be deleted.
  5. Doctored posts/images and AI are allowed, but discouraged. You MUST indicate this in your post (even if you didn’t originally know). If an image is found to be fabricated or edited in any way and it is not properly labeled, it will be deleted.
  6. Absolutely no NSFL content.
  7. Be nice. Don’t take anything personally. Take political debates to the appropriate communities. Take personal disagreements & arguments to private messages.
  8. No advertising, brand promotion, or guerrilla marketing.

RELATED COMMUNITIES:

  • !whitepeopletwitter@sh.itjust.works
  • !curatedtumblr@sh.itjust.works
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.39K users / day
  • 5.62K users / week
  • 12.1K users / month
  • 21.4K users / 6 months
  • 1 local subscriber
  • 10.8K subscribers
  • 3.93K Posts
  • 166K Comments
  • Modlog
  • mods:
  • Ready! Player 31@lemmy.world
  • AeronMelon@lemmy.world
  • needanke@feddit.org
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org