D•Scribe
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
chraebsli@programming.dev to Programmer Humor@programming.dev · 1 year ago

Touch a file in Linux

programming.dev

message-square
93
fedilink
1.17K

Touch a file in Linux

programming.dev

chraebsli@programming.dev to Programmer Humor@programming.dev · 1 year ago
message-square
93
fedilink
  • tubaruco@lemm.ee
    link
    fedilink
    arrow-up
    21
    arrow-down
    1
    ·
    1 year ago

    what is cat’s use if not seeing whats inside a file?

    • Navigate@lemmings.world
      link
      fedilink
      arrow-up
      62
      ·
      1 year ago

      It is short for concatenate, which is to join things together. You can give it multiple inputs and it will output each one directly following the previous. It so happens to also work with just one input.

      • kautau@lemmy.world
        link
        fedilink
        arrow-up
        10
        ·
        1 year ago

        That’s why we have bat now

        https://github.com/sharkdp/bat

        • Trailblazing Braille Taser@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          50
          ·
          1 year ago

          To bonbatenate files?

          • kautau@lemmy.world
            link
            fedilink
            arrow-up
            9
            ·
            1 year ago

            Exactly

          • DrWeevilJammer@lemmy.ml
            link
            fedilink
            arrow-up
            3
            ·
            edit-2
            1 year ago

            Bat bat bo-at

            Bonbaten-fana fo-fat

            Fee-fi-fo-fat

            Bat!

        • Hamartiogonic@sopuli.xyz
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Cat with wings? Isn’t a bat more like a rat with wings?

      • Mad_Punda.de@feddit.de
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        TIL

        I never realized. Thanks!

    • ulterno@lemmy.kde.social
      link
      fedilink
      English
      arrow-up
      28
      ·
      1 year ago

      It is to use along with split. e.g.

      1. You take a single large file, say 16GB
      2. Use split to break it into multiple files of 4GB
      3. Now you can transfer it to a FAT32 Removable Flash Drive and transfer it to whatever other computer that doesn’t have Ethernet.
      4. Here, you can use cat to combine all files into the original file. (preferably accompanied by a checksum)
      • Tangent5280@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Doesnt computers do this automatically if you try to copy over a file larger than its per file size limit?

        • Octopus1348@lemy.lol
          link
          fedilink
          arrow-up
          9
          ·
          1 year ago

          No. It just gives an error that it’s too big.

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 1.03K users / day
  • 4.43K users / week
  • 8.64K users / month
  • 17.9K users / 6 months
  • 9 local subscribers
  • 23.2K subscribers
  • 1.27K Posts
  • 40.5K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • UI: unknown version
  • BE: 0.19.9
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org