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