---
title: "Comment by Agnius Vasiliauskas on \"Linux Basics: Touching Files and Making Dirs\" | Hashnode"
description: "Nice intro to Linux commands. I don&#39;t know why, but for creating new files I prefer redirecting with echo &gt; file.ext . With cat problem is that textual i"
url: "https://hashnode.com/posts/linux-basics-touching-files-and-making-dirs/5fdd4535b78ac62dff80bea5/comment/5fdd471f1485f22e24b342a0"
---

[Discussion](https://hashnode.com/posts/linux-basics-touching-files-and-making-dirs/5fdd4535b78ac62dff80bea5)

Comment [Linux Basics: Touching Files and Making Dirs](https://hashnode.com/posts/linux-basics-touching-files-and-making-dirs/5fdd4535b78ac62dff80bea5)

[Agnius Vasiliauskas](https://hashnode.com/@AgniusVasiliauskas)

[Dec 19, 2020](https://hashnode.com/posts/linux-basics-touching-files-and-making-dirs/5fdd4535b78ac62dff80bea5/comment/5fdd471f1485f22e24b342a0)

Nice intro to Linux commands. I don't know why, but for creating new files I prefer redirecting with `echo > file.ext`. With cat problem is that textual information will be copied into destination, but maybe file is binary ? So either your proposed touch or echo with zero bytes outputed. Then you open that binary file in required edit, and here you go.

[Dan Cobb](https://hashnode.com/@danc0)

[Dec 19, 2020](https://hashnode.com/posts/linux-basics-touching-files-and-making-dirs/5fdd4535b78ac62dff80bea5/comment/5fdd471f1485f22e24b342a0#reply-5fdd47df1485f22e24b342ab)

That is a good one too, the main time I use the cat redirect is if it is a quick note just because it goes straight into the interactive mode, but for anything outside of a text file echo is better for sure.
