how to create a file and write to it in linux code example Example: create file in linux touch <filename>.<extension>