Create new file [Comparison between Bash and PowerShell]

Return to Bash and PowerShell command correspondence table

Command comparison

shell command commandの短縮形
Bash touch -
PowerShell New-Item ni

Bash

Command format

$touch new file name

Example of use

For example, to create a file called sample_bash.txt, do the following.

$ touch sample_bash.txt

PowerShell

Command format

> New-Item -Type File New file name

Or

> ni -Type File New file name

Example of use

For example, to create a file called sample_powershell.txt, do the following:

> New-Item -Type File sample_powershell.txt

Or

> ni -Type File sample_powershell.txt

Recommended Posts

Create new file [Comparison between Bash and PowerShell]
Search for character strings in files [Comparison between Bash and PowerShell]
Creating an alias (when there are multiple arguments) [Comparison between Bash and PowerShell]
File write speed comparison experiment between python 2.7.9 and pypy 2.5.0
File open function in Python3 (difference between open and codecs.open and speed comparison)
[Samba] File sharing between Linux and Windows machines
Speed comparison between incrementing count variable and enumerate
[Ruby vs Python] Benchmark comparison between Rails and Flask
Speed comparison between CPython and PyPy
[Ubuntu] [Python] Face detection comparison between dlib and OpenCV
Linux (Bash) and Windows (Powershell) key binding correspondence table