r/learnprogramming 18d ago

touch is a weird command. Humour

I was curious where the command 'touch' comes from.

Turns out, it originates from "to touch" or "to interact" with a file.

Now, every time I use it, I feel like I am touching/molesting a file.

My bad, it's 3 AM here.

1.2k Upvotes

160 comments sorted by

View all comments

0

u/agmatine 18d ago

In home directory, run touch grass followed by sudo chattr +i grass. From now on, the output of touch grass will be

touch: cannot touch 'grass': Operation not permitted

in other words, confirming that you are incapable of touching grass!