LoginSignup
31
29

More than 3 years have passed since last update.

Linux(Bash)とWindows(PowerShell)のコマンド対応表

Last updated at Posted at 2020-07-28

とりあえずメモ。
私が必要に応じて変更します。

BashとPowerShellのコマンド対応表 (50音順)

したいこと
(リンク先は使い方の説明)
Bashコマンド PowerShellコマンド
インストール Debian系:apt または apt-get
RedHat系:dnf(旧:yum)
choco
環境構築こちら
URLからファイルのダウンロード wget Invoke-WebRequest
エイリアス:wget
エイリアスの作成 alias Set-Alias
エイリアス:sal
エイリアスの作成(引数が複数ある場合) alias 存在しない(自作関数を作成する)
エイリアスの詳細の表示 alias Get-Alias
エイリアス:gal
コマンドの場所を表示 which Get-Command
エイリアス:gcm
コマンドのマニュアルの表示 man Get-Help
エイリアス:man
再起動 shutdown または reboot Restart-Computer
シャットダウン shutdown Stop-Computer
ストレージ容量の確認 df Get-PSDrive
エイリアス:gdr
設定の反映 source または . .
疎通確認 ping Test-Connection
疎通確認(ポート指定可) ??? Test-NetConnection
ファイル権限の変更 chmod icacls
ファイルの削除 rm Remove-Item
エイリアス:rm
ファイルの中身を出力 cat Get-Content
エイリアス1:gc
エイリアス2:cat
ファイル所有者の変更 chown takeown
ファイル新規作成 touch New-Item
エイリアス:ni
ファイル内の文字列検索 grep Select-String
エイリアス:sls
ファイル名検索 find Get-ChildItem
エイリアス1:dir
エイリアス2:ls
プロセスの起動(アプリの起動) xdg-open または ./ Start-Process
エイリアス1:start
エイリアス2:./
プロセスの表示 ps Get-Process
何かあったら、追加していきます `` ``
31
29
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
31
29