make txt file linux code example Example 1: create file in linux touch <filename>.<extension> Example 2: linux make file touch file1.txt #Create file1.txt