WindowsとMacのコマンドを比較してみた。
UNIXコマンドは以下サイトを参考にしました。
http://www.k-tanaka.net/unix/
※間違っているかもしれないので、参考程度に
windows | Mac | |
ツール |
コマンドプロンプト | ターミナル |
アスタリスク | ||
ディレクトリの移動 |
cd パス | |
フォルダ削除 |
rmdir フォルダ名 | |
フォルダ作成 |
mkdir フォルダ名 | |
ファイル出力 |
dir /b > list.txt | ls > list.txt |
ファイル結合 |
type file1 file2 > new_file | marge new_file file1 file2 |
プロセス・ジョブを強制終了 |
taskkill プロセス名 | kill シグナル番号 |
一覧一覧表示 |
copy file1 file2 | cp file1 file2 |
ファイル検索 |
find path file1 | find path -name file1 |
移動 |
move file1 path | mv file1 path |
名前変更 |
ren file1 file2 | mv file1 file2 |
現在のディレクトリの場所を表示 |
%~dp0 | pwd |
ファイル削除 |
del file1 | rm file1 |
ファイルからパターン検索 |
find “abs” file1 | grep 'abc' file1 |
ホストコンピュータのIDを表示・設定 |
ipconfig | hostid |