how to open a file and write in linux code example Example: how to make file in terminal ubuntu $ touch file1.txt