WindowsとMacのコマンド比較表
今回の趣旨
数年前に医療系SEをしていたのですが、
その時によく使用したWindowsのコマンドをまとめました。
※一部、使用していないものもあります
また、今はMacを使っているので、比較表を作成しました。
UNIXコマンドは以下サイトを参考にしました。
コマンド表
windows | Mac | |
ツール |
コマンドプロンプト | ターミナル |
アスタリスク | アスタリスク | |
ディレクトリの移動 |
cd path | |
フォルダ削除 |
rmdir directory | |
フォルダ作成 |
mkdir folder1 | |
ファイル一覧をファイル出力 |
dir /b > list.txt | ls > list.txt |
ファイル結合 |
type file1 file2 > new_file | marge new_file file1 file2 |
プロセス・ジョブを強制終了 |
taskkill prosessname | kill signal |
一覧一覧表示 |
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 |
日付(例)20180515 | %date:~0,4%%date:~5,2%%date:~8,2% | $date '+%Y%m%d' |
最後まで見ていただきありがとうございました。
===============【宣伝】===============
●名刺を新調しませんか?
●お安くデザイン制作を依頼した方はこちら