1166
Touch a file in Linux (programming.dev)
you are viewing a single comment's thread
view the rest of the comments
[-] tubaruco@lemm.ee 20 points 3 months ago

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

[-] Navigate@lemmings.world 62 points 3 months 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 10 points 3 months ago
[-] 0x0@lemmy.dbzer0.com 50 points 3 months ago
[-] kautau@lemmy.world 9 points 3 months ago
[-] DrWeevilJammer@lemmy.ml 3 points 3 months ago* (last edited 3 months ago)

Bat bat bo-at

Bonbaten-fana fo-fat

Fee-fi-fo-fat

Bat!

[-] Hamartiogonic@sopuli.xyz 1 points 3 months ago

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

[-] Mad_Punda@feddit.de 2 points 3 months ago

TIL

I never realized. Thanks!

[-] ulterno@lemmy.kde.social 28 points 3 months 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 2 points 3 months ago

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

[-] Octopus1348@lemy.lol 9 points 3 months ago

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

this post was submitted on 17 Mar 2024
1166 points (97.5% liked)

Programmer Humor

18244 readers
1 users here now

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

founded 1 year ago
MODERATORS