How To Make a Text File In Linux?
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 a terminal window.
2. Type in the following command: touch filename.txt
3. Replace the word “filename” with the name you want to give the file.
4. To confirm that the file has been created, type the following command: ls
5. The file should appear in the list of files in the current directory.
6. To open the file, type in the following command: nano filename.txt
7. Replace the word “filename” with the name you gave the file.
8. The file will open in the nano text editor.
9. Type in the text you want to save in the file.
10. To save the changes, press Ctrl+X, then Y, and then Enter.