dos command to create text file code example Example: make text file command line cat > sample.txt # Write some text, press Ctrl+D when you are done