How to create a new empty file in Linux

subject: Commands · date: 2017-12-08

  • Create a new empty file (e.g. file1):

    $ touch file1
    
  • Or use a text editor:

    $ nano file1
    
    $ vi file1
    

read more

share this article