create file command code example Example 1: command line make file touch term-paper.txt Example 2: create file command line type nul > README.txt