Beruflich Dokumente
Kultur Dokumente
Section: ES11FA1
Date Performed:
Date Submitted: 5Dec2017
Instructor: Engr. Acoba
DOS
1. Objective(s):
The activity aims to introduce the significance of Disk Operating System (DOS) and apply the use of different
command in managing computer and files.
2. Intended Learning Outcomes (ILOs):
3. Discussion:
DOS (Disk Operating System) was the first operating system used on the original IBM PC. It is a
non-graphical command line operating system created for IBM compatible computers that was first introduced
by Microsoft in August 1981. DOS systems utilize a command line interface (CLI). Programs are started by
entering their filename at the command prompt. It includes several programs as system utilities and provides
additional commands that don't correspond to programs which are internal command.
Some of the most common commands are as follows (corresponding commands on Unix-like operating systems
are shown in parenthesis):
4. Resources:
DOS
When you first turn on your computer, you will see some cryptic information flash by. The MS-DOS
displays this information to let you know how it is configuring your computer. You can ignore it for now. When the
information stops scrolling past, you'll see the following:
This is called the command prompt or DOS prompt. The flashing underscore next to the command prompt is
called the cursor. The cursor shows where the command you type will appear.
MS-DOS and the Windows command line are not case sensitive. The files and directories shown in
Windows are also found in the command line. When working with a file or directory with a space, surround it in
quotes. For example, My Documents would be "My Documents". Filenames can have a long file name of 255
characters and a 3 character file extension.
When a file or directory is deleted in the command line, it is not moved into the Recycle bin. If you need
help with any of command type /? after the command. For example, dir /? would give v the options available
for the dir command.
Exercise No.1
Set the default console foreground and background colors.
Syntax:
COLOR [background][foreground]
Follow the following steps to set the foreground and background color.
1. In CMD, type HELP to check all commands with its corresponding function. Search for the
command named COLOR. In your drive C directory type COLOR ? to view the color
attributes. Color attributes are specified by two hexadecimal digits wherein the first digit
corresponds to the background and the second digit corresponds to the foreground.
2. Type COLOR fc to produce light red foreground on bright red background. If no argument is
given, this command restores the color to what it was the time you open the cmd.exe.
3. Change the background and foreground of your command prompt to 01.
What color combination it produces? Black and Blue
4. Again, change the background and foreground of your command prompt to 33.
What color combination it produces? Just the same. Nothing happened.
5. Explain your answer in question no.4
Nothing will happen if the two numbers of the command is similar for these 2 digits represent
the foreground and background. Nothing will be visible if foreground is as the same color as
background.
Exercise No.2
Syntax:
dir
Follow the following steps to check and display the list of files and subdirectories in a directory.
1. In CMD, type dir. What drive your command prompt display? Drive C
This is called a directory list. A directory list is a list of all the files and subdirectories that a
directory contains. In this case, you see all the files and directories in the main or root
directory of your drive. All the files and directories on your drive are stored in the root directory.
2. What drive do you see? Volume in drive C
3. Write the volume serial number of your drive? 80C3-E17E
4. Record the total file(s), total directories and the total size.
6. Type dir /p. What output do you see after executing the command? Volume in drive
C is Windows, Volume serial Number is 80C3-E17E , Directory of C:\ , File Not
Found
Note that the slash you type in this command is a backslash (\), not a forward slash
(/).
No matter which directory you are in, this command always returns you to the root directory of a
drive. The root directory does not have a name. It is simply referred to by a backslash (\).
7. Now, type dir /w/p. What output do you see after executing the command?
Volume in drive C is Windows
Volume Serial Number is 80C3-E17E
Directory of C:\
[Intel] [PerfLogs] [Program Files] [Program Files (x86)]
[SWSETUP]
[Users] [Windows]
0 File(s) 0 bytes
7 Dir(s) 851,634,024,448 bytes free
8. List the differences of the three command when it comes to output display.
dir: It displays the files or folders and directories in the current directory.
dir /p: It displays files and directory page wise.
dir /w/p: It displays files in a wide format as many as 5 files on each line.
Exercise No.3
Syntax:
md <directory name>
mkdir <directory name>
Follow the following steps to check and display the list of files and subdirectories in a directory.
5. How many files do you see and what is the size of your directory? 0 Files ; 0 bytes
Why? Explain your answer. There is no files nor folders that the directory contains.
Exercise No.4
Syntax:
cd <directory name>
chdir <directory name>
Delete directory
Syntax:
Follow the following steps to change directory and to delete one of more files.
1. In the main directory of your drive C, type cd <directory name>. What line was displayed?
C:\muoz>
2. Check the content of the directory you created. Write the output below:
3. What command is needed to check the content of your directory? dir
4. What is the size of your directory? 2 Dir(s) 851,622,502,400 bytes free
Why? Explain your answer. There is no any file saved on the directory and the size displayed
is the available space on the drive.
5. Go back from your created directory, type cd.. . What happen after executing the command?
The directory returned to the parent directory or moved back by one directory.
6. Now, delete the file directory you created.
7. Use the dir command to confirm.
Exercise No.5
1. From drive C, type the following at the command prompt d: (Note that if your computer has no
drive D, check what other drive is present in my My Computer).
2. What happened after executing the command?
3. How are you going to go back to the original drive? You can return to the original drive just by
typing c:
SUPPLEMENTAL ACTIVITY
MS-DOS is a non-graphical command line operating system that allows the user to manage the computer
and files with the use of different commands. In spite of its very small size and relative simplicity, it is one of
the most successful operating systems that has been developed to date.