要 旨
LinuxコマンドとWindowsコマンド(Power Shell)の主要なものを対比表形式で記述します。
記述対比表
コマンドの意味 | Linuxコマンド | Windowsコマンド |
---|---|---|
現在のディレクトリ | pwd | @cd |
クリア | clear | cls |
ファイルやディレクトリの情報表示 | ls | dir |
コピー | cp | copy |
移動 | mv | move |
名前変更 | mv | ren |
削除 | rm | del |
ディレクトリ作成 | mkdir | mkdir |
空ファイル作成 | touch | copy nul foo.txt |
ファイル検索 | find | find |
通っているパス確認 | echo $PATH | echo %PATH% |
コマンドの場所確認 | which | where |
ディスクや空き領域調査 | df -h | Get-PSDrive,Get-Volume |
パソコンの性能評価 | - | Winsat formal |
スコア(点数)表示 | - | Get-CimInstance Win32_Winsat |
結 言
今回は、LinuxコマンドとWindowsコマンド(Power Shell)の主要なものを対比表形式で記述しました。