Create an empty text file using the touch command

The original purpose of the touch command is to update a file's timestamp to the current date and time without modifying it. The touch command can also be used to create an empty file of size 0 bytes. We cannot enter any text in the file with the touch command, but we can create multiple new files with a single command. It is quite often used to create files that are intended to be used in future. The syntax of the touch command is as follows:

$ touch <path_for_empty_file>

Examples of the touch command are shown in the following screenshot:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.115.120