Dir (DOS)

dir(ディーアイアール、DIRectory)は、DOSのCOMMAND.COM(およびその後継の、Microsoft Windowsにおけるコマンドラインシェル)…

Dir (DOS)

dir(ディーアイアール、DIRectory)は、DOSCOMMAND.COM(およびその後継の、Microsoft Windowsにおけるコマンドラインシェル)の内部コマンドで、ディレクトリに含まれるもの(ファイルやサブディレクトリなど)の一覧を出力する。

概要

デフォルトではカレントディレクトリ、あるいは引数で指定されたディレクトリに含まれるファイルおよび(サブ)ディレクトリを、一覧形式で表示する。表示する項目はオプションで指定する事ができ、名前順・サイズ順・日付順等のソートなどの機能もある。

使用例

Windowsにおける例を示す。

C:\Users\Administrator\Documents>dir
 ドライブ C のボリューム ラベルは ボリューム です
 ボリューム シリアル番号は XXXX-XXXX です

 C:\Users\Administrator\Documents のディレクトリ

2016/11/03  21:53    <DIR>          .
2016/11/03  21:53    <DIR>          ..
2016/11/03  21:18    <DIR>          C#
2016/11/03  21:18    <DIR>          Java
2016/11/03  10:47    <DIR>          SQL
2016/11/03  21:17            15,872 Wikipedia.txt
2016/11/03  21:21            74,136 家計簿.xlsx
               2 個のファイル              90,008 バイト
               5 個のディレクトリ  20,296,359,936 バイトの空き領域

関連項目

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.