1168
Touch a file in Linux (programming.dev)
you are viewing a single comment's thread
view the rest of the comments
[-] RustyNova@lemmy.world 28 points 9 months ago

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

[-] debil@lemmy.world 10 points 9 months ago

If you need multiple files for testing a script or such: touch file{1..5}.txt

[-] emptiestplace@lemmy.ml 2 points 9 months ago

If you're having a party or whatever: touch *

[-] DannyBoy@sh.itjust.works 5 points 9 months ago

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.

[-] emptiestplace@lemmy.ml 8 points 9 months ago

That's weird. Stop it.

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

I usually do open filename because I prefer GUI text editors.

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

Programmer Humor

19821 readers
890 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 2 years ago
MODERATORS