behrooz bozorg chami
Programming and IoT with Behrooz

Programming and IoT with Behrooz

Touch command in PowerShell Windows

Photo by Gabriel Heinzer on Unsplash

Touch command in PowerShell Windows

Equivalent for touch command on PowerShell

behrooz bozorg chami's photo
behrooz bozorg chami
ยทJan 15, 2022ยท

1 min read

Subscribe to my newsletter and never miss my upcoming articles

Play this article

Table of contents

  • introduction
  • Equivalent Commands

introduction

The touch command is a standard command used in UNIX/Linux operating system which is used to create, change and modify timestamps of a file. but we don't have touch command in PowerShell Windows (PowerShell in Linux has touch command ๐Ÿ˜ช). What is equivalent?

Equivalent Commands

copy

copy nul "file.txt"

New-Item

New-Item textfile.txt -type file

Type

type nul >> "file.txt"
ย 
Share this