DIR: 파일목록 및 파일에 관한 정보를 보여준다.
dir은 지정된 디스켓이나 디렉토리를
읽어 그 안에 저장된 자료의 목록과 자료에 대한 정보를 화면에 보여준다.
예:
c:\dir +
volume is drive C IS SYSTEM
volume serial number number is 3F5E-14FB
Directory of C:|
command.com 54619 9-30-93 6:20
4DOS.COM 151562 11-30-93 12:20
CLIPART <DIR> 4-21-94
13:30
22
files 454,903 bytes
43,835,392
bytes free
참고: 어느 특정 file 이 있는 위치를 확인할 때
예: c:\dir test.exe /s
format: DOS가 알 수 있도록 디스크에 줄을 그어주는
작업을 format 이라고 한다 format 명령은 disk가 백지상태인 것을 말하므로 만약
자료가 저장된 disk를 format 하면 이미 저정된 자료를 잃게된다.
예: floppy disk를 format 하는 경우
C:\format a: +
md: directory를 만들때
예: floppy disk에 test 라는 directory를 만들 때
a:md test
rd: 만든 directory를 제거할 때
예: test directory를 지운다.
a: rd test
cd: change directory 명령
copy: 필요한 자료나 프로그램의 복사를 위해서는 copy
명령어를 사용한다.
예 1: C disk의 test.txt 파일을 floppy disk 로 복사한다.
c:\copy test.txt a:\ +
예 2: *.* (Wild card Character)를 이용한 복사
c disk abc 폴더에 있는 file 전부를
floppy disk 'def' 폴더에 복사하고자 할 때
c:\abc\copy
*.* a:def\ +
del: 파일의 삭제
예: floppy disk의 abc.com 파일을 삭제할 때
a: del abc.com