I am not asking how to make a file from the command line!
I have been using
touch for making files for years without paying attention that its main purpose is something else. If one wants to create a file from command line there are so many possibilities:
touch foo.bar > foo.bar cat > foo.bar echo -n > foo.bar printf '' > foo.bar
And I'm sure there are more.
But the fact is, none of the commands above are actually designed for creating files. For example,
man touch suggests this command is for changing file timestamps. Why doesn't an OS as complete as Unix (or Linux) have a command solely designed for creating files?