Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Quickly Create New Blank Text Files on Windows, Mac and Linux

Learn how to quickly create new blank text files on Windows, mac and Linux with clear steps, practical tips, and troubleshooting guidance.

Table of Contents

This step-by-step guide explains how to quickly create new blank text files on Windows, mac and Linux. It covers the required setup, the main actions, and the checks that help prevent common problems.

Today, we will show you how to create new blank text files in Windows, Mac and Linux quickly. In Windows, creating new text files is easy. But on Mac and Linux, this job requires some initial setup, then creating a new text file is also quick and easy.

Microsoft provides a way to create a new blank text file using the right-select menu in File Explorer .

Open File Explorer And navigate to the folder where you want to create the text file. Right-select the folder and go to New> Text Document .

The text file is named by default as New Text Document. Txt But the filename is highlighted, enter a new name for the file and press Enter or just press Enter To accept the default name.

There is no built-in option for New> Text Document Like Windows on Mac. But users can create one-select options in Finder using the built-in Automator app.

Another option is to use a simple command in the Terminal window.

Automator is a very useful automation tool available in macOS. In addition to the basics of using Automator, today, in this article, we will look at how to use Automator to add the option to create new text files in the Finder.

Launch Automator from the Apps Folder. On the dialog box displayed, select the location for the app you will create. You can save it in the Apps Folder. But if you don't want to store there, you can choose another location. Just make sure it's a fixed position.

When you are in the selected location, select New Document.

Automator will ask what type of document you want to create. Select App in the Choose a type Box For your document . Then, select Choose .

Select Actions At the top of the left pane and Library In the control panel. Scroll down the list of actions and drag Run AppleScript Action into the task pane

Delete the current text in the AppleScript Run Box. Copy the following line and paste it into the AppleScript Run box.

 tell application "Finder" to make new file (c?a ?ích c?a c?a s? ??u) nh? alias 

Next, go to File> Save .

Enter a name for the app in the Save As Box, keep the extension ' . App '.

Select App in File Format . This will be the default option. Then, select Save .

Now that we have created the Automator App, we will then add it to the toolbar in the Finder.

Open Finder And navigate to the folder where you saved the Automator App.

Hold down Option + Command Prompt And drag the app file to the toolbar.

To use the new app to create a blank text file, open the folder where you want to store the file and select the Automator Button in the toolbar.

A text file named ' Untitled ' will be created in the directory.

Method to create a blank text file without setting the ". Txt" file extension. If you plan to transfer the file to a Windows machine, you should add the ". Txt" file extension to the file. It will be more difficult to work with files that do not have extensions in Windows.

To add the file extension '. Txt' and change the file name if you want, right-select the text file. Then, select Rename and enter a new name for the file, remember to enter: .txt at the end of the file name.

Select Add When the following dialog box is displayed.

Double-select the new text file to open it in your default text editor, add content and save it.

You can also use Terminal to create a new blank text file. The easiest way is to open the Finder And select the folder where you want to save the text file. Go to Finder> Services> New Terminal at Folder .

A Terminal window opens for the selected folder. Type the following command at the prompt, replace " MyTextFile. Txt " with the name you want to use for your text file.

 touch MyTextFile.txt 

The file is created and saved in the folder you selected. You can double-select the file to open it in the default text editor, add content and save it.

In Linux, you can use the Command line to create a new blank text file, just like you do on a Mac. If you prefer to use Nautilus to process files, you can quickly create text files there.

To use the command line to create a new blank text file, press Ctrl + Alt + T To open the Terminal window. Enter the following command and press Enter .

 touch ~ / Documents / TextFiles / MyTextFile.txt 

Change the path and file name ( ~ / Documents / TextFiles / MyTextFile. Txt ) to the new name you want to use. The tilde character (~) is a shortcut to your home directory. For example, the full path to the text file above is /home/lori/Documents/TextFiles/MyTextFile. Txt.

This method works in any Linux distribution, but the shortcut to open a Terminal window may vary.

  • Create your own Linux distribution with Ubuntu Imager

We will show you how to add an option for Nautilus in Ubuntu to create a new text file. File manager in other Linux distributions, such as Linux Mint, Fedora, Red Hat, etc. , may have this type of option. If not, you can use the command line method mentioned above.

Before Ubuntu 17. 10, Nautilus contained an option on the right-select menu that allows you to create a new blank document in the current directory. But that option was removed in versions 17. 10 and 18. 04. We will show you how to add this option to Nautilus.

In the Home Folder, you will see a folder named Templates . At first, it was completely empty. Adding files to this folder allows you to quickly create new files using the right-select menu in Nautilus.

You can use the tap command tap command that we mentioned in the previous section to create a new blank document file.

Press Ctrl + Alt + T To open the Terminal window. Then, type the following command and press Enter .

 touch ~ / Templates / Empty Document 

Note the backslash and the space between 'Empty' and 'Document'. If there is a space in the path or file name, you must put a backslash before it.

A new file named " Empty Document " is added to the Templates Folder. You can use a different name for the template file but save it in the Templates folder.

If you don't like using the command line, you can create a blank document template with gedit. Press The Windows key And type: Gedit In the search box. Then, select the Displayed Text Editor icon .

Select Save Without entering any text in the file.

Open the Templates Folder in Home .

Enter a name, such as ' Empty Document ', in the Name Box and select Save .

Once you've created a blank document template by following the steps in the previous section, you can now create a new text file in Nautilus.

Right-select any folder and go to New Document> Empty Document . The Empty Document option displays whatever name you have set, so the options may vary depending on the user.

Of course, you can always use the text editor to create a new text file. But the methods we've shown here are handy if you create multiple text files at the same time.

FAQ

What should I check before following these steps?

Confirm device and software compatibility, save important data, and make sure you have the required permissions, files, and account access.

Why might the process not work?

Common causes include outdated software, missing permissions, incompatible hardware, an unstable connection, or completing a step in the wrong order.

Can I undo the changes if necessary?

That depends on the tool or setting. Use built-in restore options when available, keep a backup, and record the original configuration first.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.