how to open a file using touch command code example Example: touch command touch test.txt // this creates a file called test.txt