chraebsli@programming.devcake to Programmer Humor@programming.dev · 4 months agoTouch a file in Linuxprogramming.devimagemessage-square79fedilinkarrow-up1899arrow-down122
arrow-up1877arrow-down1imageTouch a file in Linuxprogramming.devchraebsli@programming.devcake to Programmer Humor@programming.dev · 4 months agomessage-square79fedilink
minus-squareRustyNova@lemmy.worldlinkfedilinkarrow-up19·4 months agoI’m way to used to doing nano file.txt that I always forget about touch. Although most times, if I create a file, it’s to put something in it
minus-squaredebil@lemmy.worldlinkfedilinkarrow-up5·4 months agoIf you need multiple files for testing a script or such: touch file{1..5}.txt
minus-squareDannyBoy@sh.itjust.workslinkfedilinkEnglisharrow-up1·4 months agoI do the opposite, I forget I can just create a file with nano. I run touch then open it with nano after to edit.
I’m way to used to doing
nano file.txt
that I always forget about touch.Although most times, if I create a file, it’s to put something in it
If you need multiple files for testing a script or such:
touch file{1..5}.txt
I do the opposite, I forget I can just create a file with nano. I run touch then open it with nano after to edit.