Skip to content

Instantly share code, notes, and snippets.

@nnsnodnb
Created August 26, 2015 18:39
Show Gist options
  • Save nnsnodnb/0a08a2ebbb922cfb7b4e to your computer and use it in GitHub Desktop.
Save nnsnodnb/0a08a2ebbb922cfb7b4e to your computer and use it in GitHub Desktop.
Windowsで「ls」コマンドを使う方法

常時lsコマンドを使う場合

  1. テキストエディタに以下を書き込み保存.
dir %1

ファイル名は「ls.bat」とする.
この時ファイルの種類を「すべてのファイル(*.*)」にしておく.

  1. ls.batをWindowsのPATHの通っているところに移動

一時的にlsコマンドを使う場合

一時的にlsをWindowsのdirと同じような動作をさせるには以下のコマンドを実行

doskey ls=dir /a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment