---
title: "Discussion on \"Linux Basics: Touching Files and Making Dirs\" | Hashnode"
description: "Discussion on \"Linux Basics: Touching Files and Making Dirs\". In this entry of our Linux Basics series, we will begin to uncover some of the file interactions possible through the command line. We'll touch on things like creating, editing, and removing files and directories, and searching files for a specific p..."
url: "https://hashnode.com/posts/linux-basics-touching-files-and-making-dirs/5fdd4535b78ac62dff80bea5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Linux Basics: Touching Files and Making Dirs](https://blog.daniel-cobb.com/linux-basics-touching-files-and-making-dirs?utm_source=hashnode&utm_medium=feed)

In this entry of our Linux Basics series, we will begin to uncover some of the file interactions possible through the command line. We'll touch on things like creating, editing, and removing files and directories, and searching files for a specific p...

Dec 19, 2020 · 24 min read · blog.daniel-cobb.com  
Updated Dec 29, 2020  
Read the article

-   [#linux](https://hashnode.com/tag/linux)
-   [#linux-for-beginners](https://hashnode.com/tag/linux-for-beginners)
-   [#linux-basics](https://hashnode.com/tag/linux-basics)
-   [#command-line](https://hashnode.com/tag/command-line)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

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

@danc0 · North Carolina

  
[View profile](https://hashnode.com/@danc0)

Web Developer and Programmer

I am a web developer and designer who likes to dabble in computer security and scripting. When I'm not at a computer I'm usually reading or playing the guitar.

## Responses 1

Markdown supported · ⌘↵ to post

[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.
