---
title: "Discussion on \"Lesson 2 - Create files, display contents and stats\" | Hashnode"
description: "Discussion on \"Lesson 2 - Create files, display contents and stats\". touch:\n\n\nCreates an empty file if it doesn’t already exist or updates the last modified timestamp of an existing file.\n\n\n\ndir:\n\nLists the contents of a directory, similar to the ls command. It's more common on Windows, but it also works in some Linux..."
url: "https://hashnode.com/posts/lesson-2-create-files-display-contents-and-stats/66f4ec45d68a7709a6db52f3"
---

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

Discussion

# [Lesson 2 - Create files, display contents and stats](https://gyannbaato.hashnode.dev/lesson-2-create-files-display-contents-and-stats?utm_source=hashnode&utm_medium=feed)

touch: Creates an empty file if it doesn’t already exist or updates the last modified timestamp of an existing file. dir: Lists the contents of a directory, similar to the ls command. It's more common on Windows, but it also works in some Linux...

Sep 26, 2024 · 1 min read · gyannbaato.hashnode.dev  
Read the article

-   [#unix](https://hashnode.com/tag/unix)
-   [#unixcommands](https://hashnode.com/tag/unixcommands)
-   [#unixfilesystem](https://hashnode.com/tag/unixfilesystem)

## Written by

[dheeraj koranga](https://hashnode.com/@oyeEngineerSahab)

@oyeEngineerSahab

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

learn everything about something and something about everything

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
