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