Create an empty file in Linux

You can create an empty file using touch command in Linux

touch [options] <filename or path to file>

1. touch file1
2. Touch can also create any number of files simultaneously. The following command would create three new, empty files named file1, file2, and file3:
     touch file1 file2 file3
3. touch -t 201212101830.55 file1

Here are the options for the command:

create an empty file using touch commad
You may want to see
How to use crontab in Linux

Cron is the system process that will automatically perform tasks for you according to a set schedule. The schedule is Read more

How to extract archive file in Linux

To extract archive file in Linux, you can use the tar command, used for extracting content from the archive files. "tar" Read more

How to Change permission of a file in Linux

chmod command is used to change the permission of a file in Linux. In Linux, there is a set of rules for Read more

How to create and remove the directory in Linux

There is a separate command to create and remove the directory in Linux. mkdir command is used to create a directory/folder Read more

Leave a Reply

Your email address will not be published. Required fields are marked *