halubilo.social
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
chraebsli to Programmer [email protected] • 2 years ago

Touch a file in Linux

programming.dev

message-square
92
fedilink
1.17K

Touch a file in Linux

programming.dev

chraebsli to Programmer [email protected] • 2 years ago
message-square
92
fedilink
  • @[email protected]
    link
    fedilink
    20•2 years ago

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

    • @[email protected]
      link
      fedilink
      62•2 years 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.

      • @[email protected]
        link
        fedilink
        10•2 years ago

        That’s why we have bat now

        https://github.com/sharkdp/bat

        • Trailblazing Braille Taser
          link
          fedilink
          50•2 years ago

          To bonbatenate files?

          • @[email protected]
            link
            fedilink
            9•2 years ago

            Exactly

          • @[email protected]
            link
            fedilink
            3•
            edit-2
            2 years ago

            Bat bat bo-at

            Bonbaten-fana fo-fat

            Fee-fi-fo-fat

            Bat!

        • @[email protected]
          link
          fedilink
          1•2 years ago

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

      • Mad_Punda.de
        link
        fedilink
        2•2 years ago

        TIL

        I never realized. Thanks!

    • @[email protected]
      link
      fedilink
      English
      28•2 years 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)
      • @[email protected]
        link
        fedilink
        2•2 years ago

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

        • @[email protected]
          link
          fedilink
          9•2 years ago

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

Programmer [email protected]

[email protected]

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: [email protected]

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
  • 1.44K users / day
  • 4.25K users / week
  • 8.62K users / month
  • 19K users / 6 months
  • 26.4K subscribers
  • 1.74K Posts
  • 63.2K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @[email protected]
  • Pierre-Yves Lapersonne
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org