Shell - Creating an empty file

Ask a question


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


> file
  • You can also use the touch command:


touch file

Modifying a read-only variable
Retrieve the result of command in a variable