Edit Text Files Using Nano Command
Nano Command gives you the ability to create as well as edit the text file at the same time .To create a new file , run the command given below :
nano test4.txt
- Executing the above commands will open you a nano editor where you can edit the text file . In order to save this file press CTRL + O and to exit press CTRL + X.
- To check if the file is created successfully use ls -l command.
- To preview the file use cat>file_name.txt command.
How to Edit Text Files in Linux?
Like any other OS, creating and editing Text files is an important skill to be known to any user. In this article, we will learn how to easily create and edit Text files in Linux using simple and basic terminal commands such as cat, touch, nano, vi, and standard redirect symbol.
Table of Content
- What is Text File in Linux?
- How to Open Text Files in Linux?
- How to Edit Text Files in Linux?
Contact Us