In DOS and other command-prompt interfaces, it is easy to become disoriented. Unlikeyour office, in which you know where you are because of the physical things you see andfeel, the computer environment is organized around your work, your files. Therefore, anysense of "where you are" is going to be a sense of where you are with respect to the fileson your disk.
The Command Prompt
So if we take a look at the computer screen, we are likely to see a blank screenwith the exception of a few lines, at least one of which begins with a capital letter followed by a colon and a backslash and ends with a greater-than symbol (>):
Any line in DOS that begins like this is (or was) a command prompt. (The actualcharacter that symbolizes the prompt is the greater-than symbol: ">".) This line prompt is the main way users know where they are in DOS. Here is how:
The C: tells the user that he/she is working within the filespace (disk storage) on the hard drive given the designation C. C is usually reservedfor the internal hard disk of a PC.
The backslash (\) represents a level in the hierarchy of the file structure.There is always at least one because it represents the root directory, thevery first level of your hard disk.n a graphical representation of thefile structure below, you can seehow a file can be stored in differentlevels on a hard disk.In DOS, the same file, SAMPLE, isrepresented this way:Folder icons represent a directory,and the document icons representactual files in those directories.C:\DEMO\DOS&WIN\SAMPLES\SAMPLEor, to mimic a graphic representation,
means is that the fileSAMPLE is on the internal hard disk, four levels deep (inside several nesteddirectories). The list of directories (\DEMO\DOS&WIN\SAMPLES\) is referredto as a pathname (following the path of directories will get you to the file). Thename of the file itself (SAMPLE) is referred to as the filename.