Thursday, 15 January 2015

create an empty file in linux

You can create an empty file using touch commad

Syntax:
touch [options] <filename or path to file>

Examples:
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’s the options for the command:
touch command options

No comments:

Post a Comment