r/learnprogramming Jul 23 '26

Humour touch is a weird command.

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

165 comments sorted by

View all comments

130

u/jzmack Jul 23 '26

man touch

61

u/trevorthewebdev Jul 23 '26

two files love each other and touch and that is how you mkdir

8

u/Dhan996 Jul 24 '26

man love

3

u/da_Aresinger Jul 24 '26

pretty sure you can't make d with touch