Return to Bash and PowerShell command correspondence table
shell | command | commandの短縮形 |
---|---|---|
Bash | touch |
- |
PowerShell | New-Item |
ni |
Bash
$touch new file name
For example, to create a file called sample_bash.txt
, do the following.
$ touch sample_bash.txt
PowerShell
> New-Item -Type File New file name
Or
> ni -Type File New file name
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