Skip to content

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 sort contents of a file

The sort command is used to sort the contents of a file. You can sort the data in a text Read more

How to use sed command in Linux

sed, short for "stream editor", allows you to filter and transform text. A stream editor is used to perform basic Read more

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

Leave a Reply

Your email address will not be published.