Edit Text Files Using Touch Command
This command is create one or more text files at a time. In simple words you can create single or multiple files using Touch Command.
- To create a single file , you may run the command given below:
touch test2.txt
- To create multiple files , you may run the command given below:
touch file1.txt file2.txt file3.txt file4.txt file5.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 .
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?