Shell - Creating an empty file

  • To create an empty file, type the following command:

> file
  • You can also use the touch command:

touch file
Published by jak58. Latest update on November 24, 2009 at 06:54 AM by deri58.
This document, titled "Shell - Creating an empty file," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (
Modifying a read-only variable
Retrieve the result of command in a variable