Edit Text Files Using Standard Redirect Symbol
Standard Redirect Symbol command is the simplest method where we can use the standard redirect command to create a single new file . To create a new file , run the command given below :
> test3.txt
- Now the files are created you may use the cat command as cat>file_name.txt to edit them and once edited exit using CTRL + D .
- To check if the file is created successfully use ls -l 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?