how to create file in shell code example Example 1: terminal command to create new file touch filename.txt Example 2: create a new file in bash script touch newfile_1.txt