How To Add Text To a File In Linux Terminal?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Open the terminal on your Linux system and choose the destination directory to which you want to add the text.
2. Now, use the following command to create and open a file: $ nano filename.txt
3. To add text to the file, type your content in the editor window.
4. When you are done, press Ctrl+X to save and exit the file.