Anton ☕

Today I Learned How To Create A Blank File in PowerShell

March 04, 2020

$null > example.txt

This command will create an empty file, similar to the touch command in bash.

Source: superuser - Equivalent of Linux touch to create an empty file with PowerShell? [duplicate]

Written by Anton Mata who lives and works in Manila building useful things. You should follow him on Twitter and GitHub