Aug 19, 2021

[Linux] create a text file using echo command

 To create a text file, we can use "echo" command in terminal.

        echo  "text to be inserted in your text file"  >  your_text_file_name.txt


If you want to add second line (next line),

        echo "text to be inserted in second line"  >>  your_text_file_name.txt


No comments:

Post a Comment