Skip to content

Create an empty file in Linux

Create an empty file in Linux

Answer:

Besides using the touch command, any easy tricks is to use the > redirection, e.g.

# > test.txt

Easy enough?

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  1. How to create an empty file in Linux
  2. How to create a dummy file with a given size in Linux?
  3. Create a temp file in Linux
  4. Remove empty lines in a file
  5. Remove comments (#) and empty lines in a file

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*