LoginSignup
0
2

More than 3 years have passed since last update.

新規ファイル作成【BashとPowerShellの比較】

Last updated at Posted at 2020-07-28

BashとPowerShellのコマンド対応表に戻る

コマンドの比較

シェル コマンド コマンドの短縮形
Bash touch -
PowerShell New-Item ni

Bash

コマンド形式

$ touch 新規ファイル名

使用例

例えば sample_bash.txt というファイルを作るには、下のようにします。

$ touch sample_bash.txt

PowerShell

コマンド形式

> New-Item -Type File 新規ファイル名

または

> ni -Type File 新規ファイル名

使用例

例えば sample_powershell.txt というファイルを作るには、下のようにします。

> New-Item -Type File sample_powershell.txt

または

> ni -Type File sample_powershell.txt
0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2