Sunday, January 01, 2012

How to create an empty file using the redirector operator in linux.

To create an empty file:

Type > newfile1 and press enter. This creates an empty file called newfile1.

To list the new file, type ls -l newfile1 and press enter.

You see only the information listed next, where jean is your user name,

-rw-r--r-- 1 jean jean    0 Nov 1 16:57 newfile1

To create another new file, > newfile2 and press enter.

No comments:

Post a Comment