DOS is a very simple operating system. For your purposes, you can probably think of it as a variation of a Linux shell in a terminal window.
Here is what some dos prompts look like:The letters before the ":" are drive letters. A: and B: are floppy drives, C: is usually the hard drive, and D:, E:, and F: are often CD drives, Zip drives, etc. Anything past G: is probably a network drive. At Carleton, K: is your FABIO account. At the prompt, after the drive letter, you see the directory that you are in.
Navigating the file system in DOS is similar to Linux. To change drives,
you will need to type in the drive letter followed by a colon (:). To change
directories, you simply do it in the same way as Linux, except use a backslash
\ instead of a forward slash /.
For example, if I changed drives to K: and then went into a directory called
AISTUFF, my screen would look like this:
C:\WINDOWS>K:
K:\>cd aistuff
K:\AISTUFF>
K:\AISTUFF>c:\windows\command\doskey
DOSKEY installed
K:\AISTUFF>dir
Volume in drive C is PURPLE
Volume Serial Number is 3D2C-3017
Directory of K:\AISTUFF
. <DIR> 11-21-02 2:36p .
.. <DIR> 11-21-02 2:36p ..
VACUUM~1 JAV 3,602 12-03-02 2:13p VacuumBot.java
VACUUM~1 CLA 859 12-03-02 2:08p VacuumBot$1.class
VACUUM~2 CLA 2,530 12-03-02 2:08p VacuumBot.class
AGENT~1 CLA 577 12-03-02 2:08p Agent.class
AGENT~1 JAV 402 12-03-02 2:10p Agent.java
5 file(s) 7,970 bytes
2 dir(s) 17,868.11 MB free
K:\AISTUFF>
Hey! What's with all this tildes on the left? That's not what I called
my file!
You're seeing some ugly side effects of combining a filesystem that supports
long file names (Windows filesystem) and a file system that only supports
eight character file names (DOS). If you are using DOS in a shell in Windows,
you can refer to the file by its long name. So VACUUM~1.JAV and VacuumBot.java
are the same file.
Linux | DOS |
cp picture.jpg ./stuff/mypics/ | copy picture.jpg .\stuff\mypics |
mv thing.cpp /tmp/ | move thing.cpp c:\temp |
mv oldname.tff newname.tff | ren oldname.tff newname.tff |
rm badfile.txt | del badfile.txt |
rm -r baddir | deltree baddir |
mkdir newdir | md newdir |
cat textfile.txt | type textfile.txt |