Touch a file in Linuxchraebsli@programming.dev to Programmer Humor@programming.dev – 1166 points – 7 months ago94Post a CommentPreviewYou are viewing a single commentView all commentsI'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 itIf you need multiple files for testing a script or such: touch file{1..5}.txtIf you're having a party or whatever: touch *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.That's weird. Stop it.I usually do open filename because I prefer GUI text editors.
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 itIf you need multiple files for testing a script or such: touch file{1..5}.txtIf you're having a party or whatever: touch *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.That's weird. Stop it.I usually do open filename because I prefer GUI text editors.
If you need multiple files for testing a script or such: touch file{1..5}.txtIf you're having a party or whatever: touch *
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.That's weird. Stop it.
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
If you're having a party or whatever: touch *
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.
That's weird. Stop it.
I usually do
open filename
because I prefer GUI text editors.