write text to file command line code example Example: touch create file with content touch ~/Desktop/something.txt