liniux create file in terminal code example Example 1: create file in linux touch <filename>.<extension> Example 2: how to make file in terminal ubuntu $ touch file1.txt