chraebsli@programming.dev to Programmer Humor@programming.dev · 2 年前Touch a file in Linuxprogramming.devimagemessage-square94linkfedilinkarrow-up11.2Karrow-down131
arrow-up11.17Karrow-down1imageTouch a file in Linuxprogramming.devchraebsli@programming.dev to Programmer Humor@programming.dev · 2 年前message-square94linkfedilink
minus-squaretubaruco@lemm.eelinkfedilinkarrow-up21arrow-down1·2 年前what is cat’s use if not seeing whats inside a file?
minus-squareNavigate@lemmings.worldlinkfedilinkarrow-up61·2 年前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.
minus-squarekautau@lemmy.worldlinkfedilinkarrow-up10·2 年前That’s why we have bat now https://github.com/sharkdp/bat
minus-squareTrailblazing Braille Taser@lemmy.dbzer0.comlinkfedilinkarrow-up50·2 年前To bonbatenate files?
minus-squareDrWeevilJammer@lemmy.mllinkfedilinkarrow-up3·edit-22 年前Bat bat bo-at Bonbaten-fana fo-fat Fee-fi-fo-fat Bat!
minus-squareHamartiogonic@sopuli.xyzlinkfedilinkarrow-up1·2 年前Cat with wings? Isn’t a bat more like a rat with wings?
minus-squareulterno@lemmy.kde.sociallinkfedilinkEnglisharrow-up28·2 年前It 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-up2·2 年前Doesnt computers do this automatically if you try to copy over a file larger than its per file size limit?
minus-squareOctopus1348@lemy.lollinkfedilinkarrow-up9·2 年前No. It just gives an error that it’s too big.
what is cat’s use if not seeing whats inside a file?
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.
That’s why we have
batnowhttps://github.com/sharkdp/bat
To bonbatenate files?
Exactly
Bat bat bo-at
Bonbaten-fana fo-fat
Fee-fi-fo-fat
Bat!
Cat with wings? Isn’t a bat more like a rat with wings?
TIL
I never realized. Thanks!
It is to use along with
split. e.g.splitto break it into multiple files of 4GBcatto 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.