create a text file in terminal linux 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