NekuSoul-Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
merari42@lemmy.world to Microblog Memes@lemmy.worldEnglish · 2 years ago

A dog is not the opposite of a cat

lemmy.world

message-square
114
link
fedilink
658

A dog is not the opposite of a cat

lemmy.world

merari42@lemmy.world to Microblog Memes@lemmy.worldEnglish · 2 years ago
message-square
114
link
fedilink
  • rc__buggy@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    23
    arrow-down
    1
    ·
    edit-2
    2 years 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
      ·
      2 years 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
        ·
        2 years 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
          ·
          2 years ago

          Hah, forgot about tac

          • joranvar@feddit.nl
            link
            fedilink
            English
            arrow-up
            3
            ·
            2 years 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
              ·
              2 years 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
                ·
                2 years 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
          ·
          2 years ago

          Oh, you use Arch?

          • joranvar@feddit.nl
            link
            fedilink
            English
            arrow-up
            2
            ·
            2 years 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
        ·
        2 years 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
      ·
      2 years ago

      How about tac which prints lines but last to first.

    • jaybone@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 years 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
      ·
      2 years ago

      Hmm, maybe pwd?

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

      pwd Print Working Directory

      • jaybone@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 years 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.97K users / day
  • 4.83K users / week
  • 10.2K users / month
  • 21.7K users / 6 months
  • 1 local subscriber
  • 11.6K subscribers
  • 4.38K Posts
  • 182K Comments
  • Modlog
  • mods:
  • Ready! Player 31@lemmy.world
  • AeronMelon@lemmy.world
  • needanke@feddit.org
  • BE: 0.19.15
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org