OPERATING SYSTEM
DOS Operating system
Q.1 Explain DOS?
·
DOS is a CUI
Operating system.
·
Dos was the first widely- installed operating system for
personal computers.
·
Earlier the same name has been used for IBM operating system
for a line of business computer.
·
DOS was developed by micro Soft Corporation.
·
Created by Bill Gates.
·
DOS use a prompt for input the command.
·
DOS is a line operating
system
Q.2
Advantage of DOS.
·
IT will run on a much
smaller system (entire os can be placed on a single modern ROM chip).
·
It gives you more direct
control of the process.
·
Because of smaller size
will boot much faster than any other windows version.
·
It is easier to write
special purpose program for so long as they don’t required fancy graphics.
·
Allow you to make use of
the old slow system you hide in the closet.
·
When you bought a new one
dos is very light weight and it will direct access to most hardware.
Q.
Disadvantage
·
Very few program are
available you need to be write program in many case.
·
Not nearly as fancy in the
graphics department.
·
Not compatible with
connect most internet.
·
It is a single user
operating system.
·
It is a single tasking
operating system.
·
It doesn’t support
graphics.
·
It doesn’t support
networking.
·
We can only make 2 GB of maximums
partition as it support only FAT16.
·
Even windows XP user some
type of DOS to access the computer during startup.
It doesn’t have the over
head of multitasking operating system.
Q. What is a DOS prompt.
·
A command prompt is used
in a text based or command live interface.
·
It will work on CUI.
·
User always needs to
remember command on working on it.
·
It is based on single
user.
Q. Advantage of DOS prompts?
·
It will work faster than
GUI.
·
You can do many things
which never work on GUI operating system.
·
It will help you to hack a
personal computer.
Q. What are Internal and External
commands?
·
Internal command?
It doesn’t
required any specific external file to execute the command because these
command are automatic loaded into the memory when Operating system is loaded
into the memory thus these are called memory resident command. The commands
available are all combined together and are stored in command.com file which is
executable command file. These internal command are further
|
General purpose command
|
File related command
|
Directory related command
|
|
1.
CLS
|
7. COPY CON
|
12.
MD
|
|
2.
DIR
|
8.
TYPE
|
13.
CD
|
|
3.
VER
|
9.
COPY
|
14.
RD
|
|
4.
VOL
|
10.
REN
|
|
|
5.
DATE
|
11.
DEL
|
|
|
6.
TIME
|
|
|
·
External
command.
External command is known as disk residence commands because they can be
stored with DOS directory or disk, which is used for getting these commands.
These commands help to perform some specific task these are stored in secondary
storage device.
Some
important external are as follow-:
|
1. MORE
|
6. FC
|
11. ATTRIB
|
|
2. MEM
|
7. CHKDSK
|
12. LABEL
|
|
3. SYS
|
8. SORT
|
13. DOSKEY
|
|
4. XCOPY
|
9. FIND
|
14.FORMAT
|
|
5. MOVE
|
10,DISK COPY
|
|
Q. Explain
all internal command?
1)
CLS-
this command is used to clear the screen.
C:\> cls enter.
2)
DIR
(directory) used to list file and directories present in the current disk.
C:\>dir enter.
|
C:\>dir/p
|
Page wise.
|
|
C:\>dir/w
|
Width wise
|
|
C:\>dir/s
|
List all file
and directories of sub directories.
|
|
C:\>dir/ah
|
Display
directory with hidden file.
|
|
C:\>dir/as
|
Display
directory with system file.
|
|
C:\>dir/ad
|
Display only
directory present on current drive.
|
|
C:\>dir/l
|
Lower case
|
|
C:\>dir/b
|
Without date
and time.
|
3)
Ver(version)
show the dos version. C:\>ver enter.
4)
Vol(volume)
display the disk volume label and serial number if exist. C:\>vol enter.
5)
Date
display the current date C:\>date.
6)
Time
used to display the current time. C:\>time.
7)
Copy
con- uses to create a new text file. C:\>copy con enter to save Ctrl + Z.
Ctrl + C exit without save.
8)
Type-
Show content or text of any file . C:\>dir/type gulab.txt
9)
Copy-
used to copy any file to another location or to copy the file to another
directories or disk. C:\> copy <
source file name> <target file name>.
10.
Ren (rename)- used to change the name of any
file or directory. C:\>ren <source file name > <target file
name>.
11.
Del
(delete)- used for erasing any file from the disk. C:\>delete <file
name>/
12.
MD-
make directory – used to create a new directory. C:\>md <directory
name>
13.
CD-
(change directory)- used to change the directory. C:\>cd..
14.
RD-
(remove directory)- used to remove the directory. C:\>rd <dir name>.
15.
Path-
used for display or sets directories for executable file. . C:\> path.
16.
Wild
card commands – used when we are working with multiple file at a time. These
command uses (?) and (*).
|
? represent one
character
|
* Represent many character
|
|
?. ???
|
*.*
|
|
??.???
|
R*.*
|
|
???.???
|
R*.c*
|
|
????.???
|
R??m*r?e
|
|
.??
|
*.exc
|
|
?????.?
|
*.ch
|
|
|
|
Q. Explain
all external command?
1.
more-
using type command we can see the content of any file but if length of file is
greater than 25 lines then remaining lines will scroll up. To overcome through
this problem we use more command we can pause the display after each 25 lines.
Example
c:\>type yusuf.txt more .. (-)
2.
mem-
display free and used amount of memory in pc. Example c:\> mem (+).
3.
sys-
used to copy system file to any disk. This can copy three main system file i.e
command.com io.sys msdos.sys. Example
c:\>sys A:. (+).
4.
xcopy-
used to copy directory in place of file from one location to another. Faster
than copy command. Example c:\>xcopy <source directory> <target
directory>. (-).
5.
move-
used for moving one or multiple file from one location to another location or
form one disk to another. Syntax
c:\>move<file name><path name>. (+).
6.
fc
(file compare) used for comparing two files and display between two files.
Syntax c:\> fc<first set of line><second set of line>.(-)
7.
chkdsk
(check disk) used to check the status of disk and show the satatus.
c:\>chkdsk (-).
8.
Scandisk
– same as chkdsk but it also detect the errors and fix them. Syntax c:\>
scandisk. (+)
9.
sort- used to sort the file . syntax
c:\>sort<file name>. (-) .
10.
find-
used to search a file for a text string. Syntax c:\>find”office” yusuf.txt.(-).
11.
Diskcopy
– used to copy the content of floppy to other . syntax c:\>diskcopy A:
B:.(-).
12.
Attrib-
used to set the selected type of file. Like a- for achieve. H- for hidden etc.
syntax c:\>attrib [+/- r] [+/-a] [+/- h] [+/-s]<file name>. (-).
13.
Label-
used to change the volume label of disk. c:\>label. (-).
14.
Doskey-
after run doskey dos will remember your inserted command. With up down arrow
key. Syntax c:\> doskey.
15.
Format-
used to format the disk and create new commands and sectors in a disk. Syntax
c:\>format A:. (-).
16.
Tree-
used to display the directory and subdirectory in a branch/tree format. Syntax
c:\> tree. c:\> tree AA. (-).
17.
Deltree-
used to delete the directory and all sub directory. Syntax c:\>deltree AA.(+)