How to create an empty file in Linux Commands Add comments Jan 202010 How to create an empty file in Linux Answer: A simple touch command will create an empty file for you. # touch test.txt Related posts: Create an empty file in Linux How to create a dummy file with a given size in Linux? Create a temp file in Linux Remove empty lines in a file Remove comments (#) and empty lines in a file Leave a Reply Cancel reply Name (required) E-mail (required) URI Your Comment You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>