Create a file from the console
There are several ways of creating a plain old text file from the command prompt. We will use a few techniques here primarily for the exercise value!
Make sure you are in the directory called CLI. We are going to create a file with the lines (you need to get this exactly right!!):
Living easy, living free.
Season ticket on a one-way ride.
Asking nothing, leave me be.
Taking everything in my stride.
To create a file called rubbish.txt we would type cat rubbish.txt
You will get a blank line; this is the cat command awaiting some input.
Type the lines of the sample file with a [return] at the end of each line and then to save the file, press <ctrl><d> when you are finished.