■Windows
主なオプション
/a すべてのファイルとディレクトリを表示
■Mac
-l 詳細を表示
-a すべてのファイルとディレクトリを表示
ファイルとディレクトリの一覧を表示します。ディレクトリやファイルを指定しない場合には、カレントディレクトリの内容を表示します。通常はこの使い方が多いでしょう。ディレクトリを指定した場合はそのディレクトリの内容、ファイル名を指定した場合はそのファイルの情報を表示します。隠しファイル/ディレクトリを含めたすべての内容を表示するためのオプションもあります。
実行例
■Windows
dir ―― カレントディレクトリの内容を表示

dir /a ―― すべてのファイル/ディレクトリを表示

■Mac
ls -la ―― すべてのファイル/ディレクトリを詳細表示
