chraebsli@programming.dev to Programmer Humor@programming.dev · 8 months agoTouch a file in Linuxprogramming.devimagemessage-square90fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageTouch a file in Linuxprogramming.devchraebsli@programming.dev to Programmer Humor@programming.dev · 8 months agomessage-square90fedilink
minus-squaretubaruco@lemm.eelinkfedilinkarrow-up0·8 months agowhat is cat’s use if not seeing whats inside a file?
minus-squareulterno@lemmy.kde.sociallinkfedilinkEnglisharrow-up0·8 months agoIt is to use along with split. e.g. You take a single large file, say 16GB Use split to break it into multiple files of 4GB Now you can transfer it to a FAT32 Removable Flash Drive and transfer it to whatever other computer that doesn’t have Ethernet. Here, you can use cat to combine all files into the original file. (preferably accompanied by a checksum)
minus-squareTangent5280@lemmy.worldlinkfedilinkarrow-up0·8 months agoDoesnt computers do this automatically if you try to copy over a file larger than its per file size limit?
minus-squareOctopus1348@lemy.lollinkfedilinkarrow-up0·8 months agoNo. It just gives an error that it’s too big.
minus-squareNavigate@lemmings.worldlinkfedilinkarrow-up0·8 months agoIt 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.
minus-squarekautau@lemmy.worldlinkfedilinkarrow-up0·8 months agoThat’s why we have bat now https://github.com/sharkdp/bat
minus-squareTrailblazing Braille Taser@lemmy.dbzer0.comlinkfedilinkarrow-up0·8 months agoTo bonbatenate files?
minus-squareDrWeevilJammer@lemmy.mllinkfedilinkarrow-up0·edit-28 months agoBat bat bo-at Bonbaten-fana fo-fat Fee-fi-fo-fat Bat!
what is cat’s use if not seeing whats inside a file?
It is to use along with
split
. e.g.split
to break it into multiple files of 4GBcat
to combine all files into the original file. (preferably accompanied by a checksum)Doesnt computers do this automatically if you try to copy over a file larger than its per file size limit?
No. It just gives an error that it’s too big.
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.
TIL
I never realized. Thanks!
That’s why we have
bat
nowhttps://github.com/sharkdp/bat
To bonbatenate files?
Exactly
Bat bat bo-at
Bonbaten-fana fo-fat
Fee-fi-fo-fat
Bat!