Creating Files
There are going to be numerous times where we will have to create files for either general usage of the OS or for the usage of certain tools that require text files as input.
Creating Text Files with Nano
Nano is the command line text editor that is considered one of the simplest to use thanks to its straight forward UI. To create a file using nano it's as a simple as using the below command:
· nano newtextfile.txt
A new window will pop open within the terminal where you can write the contents of that file and the use "Ctrl + X" to quit, once pressed an option to save will be prompt use "Y" for yes and "N" for no.
Creating Text Files with Echo
An alternative to using a command line text editor is using the command "echo" a long with a string of text to be pointed towards a text file or using ">>" to create a new one. For example:
· echo "we have made a new file using echo" >> newfile2.txt