This post will guide you on how to create a file using “touch” command. The touch command is easy to use and there are two reason to use it.
The touch command is part file utilities package and has several options.
How to create new files using touch ?
[root@server ~]# touch newtestfile1 [root@server ~]# ls -l total 0 -rw-r--r-- 1 root root 0 Jan 11 10:43 newtestfile1
As you can see, touch creates a file with a length, or size, of zero