Create a plain text file on Linux
Quick guide to creating simple plain text (.txt) files on Microsoft Windows, Apple MacOS and Linux.
Text files are useful for sending code or short pieces of information that may get corrupted or changed if shared directly in an email, messaging platform or support portal.
On Linux distributions there are lots of options for editing plain text files. For this example we'll use the Pulma GUI editor and Nano in command line.
Pulma
How you open Pulma will depend on your distribution, but on many Linux distributions you can create a new text file easily:
- Right-click on the desktop
- Find the "Create Document" menu
- Then click on "New Document"
You will be able to create a new file called "Filename.txt
Nano
Nano is a terminal application that comes installed on most Linux distributions as well as MacOS. To check you can ask your system for the version number.
nano --version
Create a new file using the command (filename.txt can be whatever you want)
nano filename.txt
This will open your blank file in terminal. Edit the file as usual. Once you're finished use Ctrl+O to save your file and Ctrl+X to exit. The main commands will be displayed along the bottom mof the screen.
The caret symbol (^) represents the Ctrl key. For example, the ^X commands mean to press the Ctrl and X keys at the same time. The letter M represents the Alt key.
Latest posts
—
Structured data for SEO
Adding structured data to a website is one of those steps that often gets overlooked, yet it can make a real difference to how a site performs in search engines.…
—
Using WordPress as a static site generator
Static site generators have gained significant traction amongst developers, designers, and businesses seeking faster, more secure websites. Unlike traditional dynamic sites, which rely on a database to deliver content on…
Continue reading "Using WordPress as a static site generator"
—
Simple steps to protect your privacy online
In today’s digital world, protecting your privacy online has become essential. With personal data constantly being shared, stored, and potentially accessed by unauthorised parties, safeguarding your privacy can help you…
Continue reading "Simple steps to protect your privacy online"
—
Moving a WordPress Website with ACF and Custom Post Types to Brightspot CMS
Migrating a website from WordPress to Brightspot CMS can seem daunting, particularly when the WordPress installation relies heavily on Advanced Custom Fields and Custom Post Types. Both ACF amd CPT…
Continue reading "Moving a WordPress Website with ACF and Custom Post Types to Brightspot CMS"