write txt file in linux code example Example 1: How do you create a file in shell script? touch NewFile.txt Example 2: create a new file in bash script touch newfile_1.txt