Creating Files
Learn how to create files using the touch command.
We'll cover the following...
In Creating and Reading Files, we learned how to use the echo
command and redirection to create files. This is one of many ways to create files on the command line. Let’s look at a few alternatives.
The touch
command
If we only need to create an empty file, we can use the touch
command. This command is designed to update the timestamp of a file. It’s ...