How to Create a Text File Easily on Ubuntu

By Rashid •  Updated on: November 7th, 2020 • 

Sometimes, we want to create simple text files with .txt extension to save data in text format. We can use Ubuntu terminal to create text files easily in Ubuntu.

Navigate to where you want to create a text file. Right-click and choose the option Open in Terminal to open the terminal from the specified location. Then use the command touch as given below.

touch filename.txt

Replace filename with your preferred name. That’s it, you will have a text file created at the specified location. You can open the file with the default text editor.

Want to know more about touch command? click here.

Rashid

I am a fan of Ubuntu and I love all popular free and open source softwares. I wish everyone should try and support open source projects.

Keep Reading