SlideShare a Scribd company logo
DOS Commands
 What is a command
 Types of DOS Commands
– Internal
– External
 Basic Terms
– File (File Types)
 Executable File
 Non Executable File
– Directory
– Root Directory
– Parent Directory
What is a Command
 A command is a set of instructions
used to perform a specific work
 Interpreted by the OS interpreter to a
machine language
– E.g. <md Ram>,<cd Ram>,etc.
Types of Command
 Internal Command
– Those commands which are already loaded
in the Command.COM file while switching to
the MS DOS
– E.g. CLS, VER, DEL, etc.
 External Command
– Those commands which are not loaded when
loading the Program but are available in the
Disk and can be invoked whenever necessary
– E.g. FORMAT, TREE, XCOPY, etc.
What is a File
 A group of organized data (records)
which are assembled for one particular
purpose and considered as one unit
 Stored in permanent storage like hard
disk, diskettes,etc.
Types of Files
 Files can broadly be categorized into two
types:
– Executable Files
– Non-Executable Files (Data Files)
What are EXE Files
 Exe Files:
– Program files that run or execute
themselves
– Have either COM or EXE or BAT as
extension
What are Data Files
 Non- executable files that contain only
the data that we produce
 Cannot execute themselves
 Need application program to run
What is a Directory
 A directory is a list of file which is itself
a file stored in the computer’s memory
so that users can reference it as it is
required
 Also called a catalog of files
Root Directory
 The Root directory is that directory
that is automatically created when the
disk is formatted
 It is the current drive that we have
been working
– E.g. A:, B: (for Floppy Disk Drive)
– C:,D: etc. (for Hard Disk Drive)
Current / Parent Directory
 Current directory is that directory in
which you are currently working
 Parent directory is that directory which
is one level up of the current directory
– E.g. C:RamHari>
Root directory
Parent directory
Current directory
Getting into MS DOS
 To start MS DOS,
click on the Start
button and choose
Run
 In the Run dialog
box, type CMD or
COMMAND which is
the EXE file for MS
DOS
 Click on the OK
button
Listing the Directories and
Files in MS DOS
 For listing the Sub-directories and Files
within a directory, we use the DIR
command
 Syntax :
– DIR [Directory_name]
– E.g. C:>DIR NCIT
 Displays all the directories/files within the
directory NCIT
1. Dir/p : -Display file and directory page wise.
2. Dir/w :- Display file And directory in horizontal
Style.
3. Dir/p/ w:- Display file And directories page wise
and horizontal style also.
4. Dir/ah :-Display all hidden files and directories.
5. Dir/a-d : - Display only files.
6. Dir/ad :- Display only Directories.
7. Dir/a/s:-Display all directory and file with
subdirectory.
8. Dir/a :- Display All Hidden And Non hidden file
and directories.
9. Dir n*.* :Display all file and directory starting
with ‘ n ’ alphabet.
Creating a Directory in MS DOS
 For creating the Directory in MS DOS, we
use the MD (Make Directory)command
 Syntax:
– C:> MD NCIT
Changing a Directory in MS DOS
 For changing the directory in MS DOS,
we use the CD (Change Directory) command
 Syntax:
– C:>CD NCIT
 Now it appears as:
– C:NCIT>
Switching between Directories
 For switching between the directories
we use the CD.. Or CD commands
 The CD.. Command switches from the
current directory to the Parent directory
whereas the CD command switches
from the current directory to the Root
directory
Creating Files in MS DOS
 For creating the files in DOS, the command
COPY CON is used
 Syntax:
– COPY CON filename
Note: File name should not exceed eight characters excluding
three characters for extension
– E.g. College1.txt
Reading Files in MS DOS
 For reading the Pre-created files in MS
DOS, we use the TYPE command. It
displays all the contents that are in the
file.
 Syntax :
– TYPE Filename
Renaming Files
 For renaming the files in MS DOS we
use the REN Command
 Syntax:
– REN oldfilename newfilename
Deleting Files in MS DOS
 For deleting files in MS DOS we use
the DEL command
 Syntax :
– DEL Filename
Deleting directories in MSDOS
 For deleting the directories in MS DOS
we use the RD command
 Syntax :
– RD Directoryname
Note : For removing the directory first the directory should
be empty
Copying Files in MS DOS
 In MS DOS, Files can be copied within
the same as well as to another Drive /
directory
 For copying the files in the same drive
we use the following syntax :
– COPY sourcefile destination
– E.g. C:>COPY [c:]NCITfile1.txt C:NCITNGH
Copying Files in MS DOS
 Files can be copied not only in the same
drive but in different drive, too. For copying
the files in different drive, a complete
location along with the Drive specification
should be mentioned
 Syntax :
– C:>COPY C:NCITfile1 D:NCITNGHNCIT
The MOVE Command
 The MOVE Command in MS DOS is used to
permanently move the files from one location
to another.
 The COPY command only copies the files leaving the
original one, whereas the MOVE command does not
leave any copy
 Syntax :
– C:>MOVE source_file destination_directory
 E.g.
– C:>MOVE c:NCITfile1 D:NCIT1file2
The VOL Command
 The VOL command is used to check the
Volume of the Disk-drive. It displays the
volume of the current disk-drive
 Syntax :
– VOL Drivename
 E.g.
– C:> VOL
Checking the Version of OS
 The VER command is used to check the
version of the Operating System that is
used in the Computer
 Syntax :
– C:>VER
 E.g. C:>VER
Returns the version of OS as Microsoft Windows 2000
[version 5.00.21951]
Checking the Date/Time
 For checking the date from the system in MS
DOS, we use the DATE command. It returns
the current system date.
 Similarly, the TIME command returns the
current time from the system.
 Syntax :
– C:>DATE
 E.g. C:>DATE
External Commands
Those commands which are not
loaded when loading the Program
but are available in the Disk and can
be invoked whenever necessary
E.g. FORMAT, TREE, XCOPY, etc.
The Label Command
 The Label command is used to check
the label of the disk that you have
been currently working
 Syntax :
– Label [drivename]
 E.g.
– C:>Label
XCopy Command
 Xcopy command is used to copy the files from
one location to another along with the
directories/sub-directories
 Syntax :
– C:>XCOPY c:dir_name d:[dir_name]
 E.g. C:>XCOPY c:CSE d:[CSE]
Note: For copying all the sub-directories, /S is used
The DISKCOPY Command
 The DISKCOPY command is used to copy
all the files from one disk to the another
disk
 It can be used to copy files from one floppy
disk to another (if two floppy drives exist in the System)
 Syntax :
– C:> DISKCOPY first_diskdrive: second_diskdrive:
 E.g.
– C:> DISKCOPY A: B:
The DISKCOMP Command
 The DISKCOMP command in MS DOS
compares the contents of two disks (hard
disk or floppy disk). The system first reads the
contents of one disk and compares it
with the another
 Syntax :
– C:> DISKCOMP A: B:
For defining the no.of sectors, /no. can be used
The FORMAT Command
 The FORMAT command prepares a new
disk for use by organizing the disk into
magnetic tracks and sectors
 Syntax :
– A:>FORMAT [Drive_name]
 E.g.
– C:>FORMAT A:
The TREE Command
 The TREE command is used to display
all directory pathnames on the
specified disk
 Syntax :
– C:>TREE [disk_name]
 E.g.
– C:>TREE A:
The EDIT Command
 The EDIT command in MS DOS is used to
edit the files. It provides a different full
screen Editor window with a few menu
options.
 Syntax :
– C:>EDIT [filename]
 E.g.
– C:>EDIT file1
The MORE Command
 The MORE Command in MS DOS is used to
view the contents of directories or files one
line after the another, I.e. it displays one line
at one press of return (Enter) key
 Syntax :
– DIR |MORE
 E.g.
– DIR C:NCIT |MORE
A pipeline is used along with the MORE command
The PRINT Command
 The PRINT Command in MS DOS is
used to print the text files
 Syntax :
– PRINT Filename
 E.g.
– PRINT File1.txt
The PROMPT Command
 The PROMPT is used to configure a
DOS prompt into our linking
 Syntax :
– C: PROMPT Promptname
 E.g.
– PROMPT NCIT
Now, the Prompt will be as NCIT

More Related Content

What's hot

1 Types and components of computer systems
1 Types and components of computer systems1 Types and components of computer systems
1 Types and components of computer systems
Dave Smith
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...
Jim Birch
 
Mac os file managment
Mac os  file managmentMac os  file managment
Mac os file managment
Andam Omar
 
Building your own embedded system with Yocto
Building your own embedded system with YoctoBuilding your own embedded system with Yocto
Building your own embedded system with Yocto
mmeisenzahl
 
Windows 7 command prompt commands
Windows 7 command prompt commandsWindows 7 command prompt commands
Windows 7 command prompt commands
Abdullah Khosa
 
Types of application software 2022
Types of application software 2022Types of application software 2022
Types of application software 2022
Neenanath3
 
DOS - Disk Operating System
DOS - Disk Operating SystemDOS - Disk Operating System
DOS - Disk Operating System
Meqdad Darweesh
 
History of Windows
History of WindowsHistory of Windows
History of Windows
Niraj Bariya
 
windows system tool (1).pdf
windows system tool (1).pdfwindows system tool (1).pdf
windows system tool (1).pdf
CrisAngeleCeballos
 
Anatomy of a Container: Namespaces, cgroups & Some Filesystem Magic - LinuxCon
Anatomy of a Container: Namespaces, cgroups & Some Filesystem Magic - LinuxConAnatomy of a Container: Namespaces, cgroups & Some Filesystem Magic - LinuxCon
Anatomy of a Container: Namespaces, cgroups & Some Filesystem Magic - LinuxCon
Jérôme Petazzoni
 
Software
SoftwareSoftware
Native Android Userspace part of the Embedded Android Workshop at Linaro Conn...
Native Android Userspace part of the Embedded Android Workshop at Linaro Conn...Native Android Userspace part of the Embedded Android Workshop at Linaro Conn...
Native Android Userspace part of the Embedded Android Workshop at Linaro Conn...Opersys inc.
 
Hard Drives
Hard DrivesHard Drives
Hard Drives
Veronica Alejandro
 
Windows Operating System
Windows Operating SystemWindows Operating System
Windows Operating System
Tarun Nayak
 
Operating system- Introduction, Types and its Functions
Operating system- Introduction, Types and  its FunctionsOperating system- Introduction, Types and  its Functions
Operating system- Introduction, Types and its Functions
Arunima Education Foundation
 
What is-dos-operating-system
What is-dos-operating-systemWhat is-dos-operating-system
What is-dos-operating-system
parag dhok
 
Ms dos
Ms dosMs dos
Ms dos
NICT
 

What's hot (20)

1 Types and components of computer systems
1 Types and components of computer systems1 Types and components of computer systems
1 Types and components of computer systems
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...
 
Mac os file managment
Mac os  file managmentMac os  file managment
Mac os file managment
 
Building your own embedded system with Yocto
Building your own embedded system with YoctoBuilding your own embedded system with Yocto
Building your own embedded system with Yocto
 
Windows 7 command prompt commands
Windows 7 command prompt commandsWindows 7 command prompt commands
Windows 7 command prompt commands
 
MS DOS
MS DOSMS DOS
MS DOS
 
Types of application software 2022
Types of application software 2022Types of application software 2022
Types of application software 2022
 
DOS - Disk Operating System
DOS - Disk Operating SystemDOS - Disk Operating System
DOS - Disk Operating System
 
Everest
EverestEverest
Everest
 
History of Windows
History of WindowsHistory of Windows
History of Windows
 
windows system tool (1).pdf
windows system tool (1).pdfwindows system tool (1).pdf
windows system tool (1).pdf
 
Computer viruses
Computer virusesComputer viruses
Computer viruses
 
Anatomy of a Container: Namespaces, cgroups & Some Filesystem Magic - LinuxCon
Anatomy of a Container: Namespaces, cgroups & Some Filesystem Magic - LinuxConAnatomy of a Container: Namespaces, cgroups & Some Filesystem Magic - LinuxCon
Anatomy of a Container: Namespaces, cgroups & Some Filesystem Magic - LinuxCon
 
Software
SoftwareSoftware
Software
 
Native Android Userspace part of the Embedded Android Workshop at Linaro Conn...
Native Android Userspace part of the Embedded Android Workshop at Linaro Conn...Native Android Userspace part of the Embedded Android Workshop at Linaro Conn...
Native Android Userspace part of the Embedded Android Workshop at Linaro Conn...
 
Hard Drives
Hard DrivesHard Drives
Hard Drives
 
Windows Operating System
Windows Operating SystemWindows Operating System
Windows Operating System
 
Operating system- Introduction, Types and its Functions
Operating system- Introduction, Types and  its FunctionsOperating system- Introduction, Types and  its Functions
Operating system- Introduction, Types and its Functions
 
What is-dos-operating-system
What is-dos-operating-systemWhat is-dos-operating-system
What is-dos-operating-system
 
Ms dos
Ms dosMs dos
Ms dos
 

Similar to Dos_Commands.ppt

Dos%20commands(1)
Dos%20commands(1)Dos%20commands(1)
Dos%20commands(1)
IDHAMUKI
 
ch6.ppsx
ch6.ppsxch6.ppsx
ch6.ppsx
ssuser5ab112
 
lab2.pptx.pdf
lab2.pptx.pdflab2.pptx.pdf
lab2.pptx.pdf
ssuser536c36
 
Lec05
Lec05Lec05
DOS commands
DOS commandsDOS commands
DOS commands
preetikapri1
 
Hos
HosHos
PC Software - Computer Application - Office Automation Tools
PC Software  -  Computer Application - Office Automation ToolsPC Software  -  Computer Application - Office Automation Tools
PC Software - Computer Application - Office Automation Tools
zatax
 
Disk Operating System.pptx
Disk Operating System.pptxDisk Operating System.pptx
Disk Operating System.pptx
DrIrfanulHaqAkhoon
 
Basic dos-commands
Basic dos-commandsBasic dos-commands
Basic dos-commands
parag dhok
 
Dos commands new
Dos commands new Dos commands new
Dos commands new
suraj pandey
 
What is DOS (Disk Operating System).pdf
What is DOS (Disk Operating System).pdfWhat is DOS (Disk Operating System).pdf
What is DOS (Disk Operating System).pdf
RohitRoshanBengROHIT
 
10 MS DOS and Its Commands.pptx .related to
10 MS DOS  and Its Commands.pptx .related to10 MS DOS  and Its Commands.pptx .related to
10 MS DOS and Its Commands.pptx .related to
perweeng31
 
Ms DOS
Ms DOSMs DOS
Ms DOS
Gunjan Singh
 
Bba ii cam u i-operating system concept
Bba ii cam  u i-operating system conceptBba ii cam  u i-operating system concept
Bba ii cam u i-operating system concept
Rai University
 
Part 2
Part 2Part 2
Part 2
Ahmed Hesham
 
Msdos crash course
Msdos crash courseMsdos crash course
Msdos crash course
Devinder Prasad
 
Internal commands of dos
Internal commands of dosInternal commands of dos
Internal commands of dos
Nargiskhan786
 
Disk operating system.pptx
Disk operating system.pptxDisk operating system.pptx
Disk operating system.pptx
HarshitMangal6
 

Similar to Dos_Commands.ppt (20)

Dos%20commands(1)
Dos%20commands(1)Dos%20commands(1)
Dos%20commands(1)
 
ch6.ppsx
ch6.ppsxch6.ppsx
ch6.ppsx
 
lab2.pptx.pdf
lab2.pptx.pdflab2.pptx.pdf
lab2.pptx.pdf
 
Lec05
Lec05Lec05
Lec05
 
DOS commands
DOS commandsDOS commands
DOS commands
 
Dos 16
Dos 16Dos 16
Dos 16
 
Hos
HosHos
Hos
 
Hos
HosHos
Hos
 
PC Software - Computer Application - Office Automation Tools
PC Software  -  Computer Application - Office Automation ToolsPC Software  -  Computer Application - Office Automation Tools
PC Software - Computer Application - Office Automation Tools
 
Disk Operating System.pptx
Disk Operating System.pptxDisk Operating System.pptx
Disk Operating System.pptx
 
Basic dos-commands
Basic dos-commandsBasic dos-commands
Basic dos-commands
 
Dos commands new
Dos commands new Dos commands new
Dos commands new
 
What is DOS (Disk Operating System).pdf
What is DOS (Disk Operating System).pdfWhat is DOS (Disk Operating System).pdf
What is DOS (Disk Operating System).pdf
 
10 MS DOS and Its Commands.pptx .related to
10 MS DOS  and Its Commands.pptx .related to10 MS DOS  and Its Commands.pptx .related to
10 MS DOS and Its Commands.pptx .related to
 
Ms DOS
Ms DOSMs DOS
Ms DOS
 
Bba ii cam u i-operating system concept
Bba ii cam  u i-operating system conceptBba ii cam  u i-operating system concept
Bba ii cam u i-operating system concept
 
Part 2
Part 2Part 2
Part 2
 
Msdos crash course
Msdos crash courseMsdos crash course
Msdos crash course
 
Internal commands of dos
Internal commands of dosInternal commands of dos
Internal commands of dos
 
Disk operating system.pptx
Disk operating system.pptxDisk operating system.pptx
Disk operating system.pptx
 

More from Osmania University

file_c.pdf
file_c.pdffile_c.pdf
file_c.pdf
Osmania University
 
Students Arsama Brochure (15 × 10 in).pdf
Students Arsama Brochure (15 × 10 in).pdfStudents Arsama Brochure (15 × 10 in).pdf
Students Arsama Brochure (15 × 10 in).pdf
Osmania University
 
PreProcessorDirective.ppt
PreProcessorDirective.pptPreProcessorDirective.ppt
PreProcessorDirective.ppt
Osmania University
 
pointers (1).ppt
pointers (1).pptpointers (1).ppt
pointers (1).ppt
Osmania University
 
introds_110116.pdf
introds_110116.pdfintrods_110116.pdf
introds_110116.pdf
Osmania University
 
vmls-slides.pdf
vmls-slides.pdfvmls-slides.pdf
vmls-slides.pdf
Osmania University
 
OOAD
OOADOOAD
CN Jntu PPT
CN Jntu PPTCN Jntu PPT
CN Jntu PPT
Osmania University
 
ISAA
ISAAISAA
Unit-INP.ppt
Unit-INP.pptUnit-INP.ppt
Unit-INP.ppt
Osmania University
 

More from Osmania University (11)

file_c.pdf
file_c.pdffile_c.pdf
file_c.pdf
 
Students Arsama Brochure (15 × 10 in).pdf
Students Arsama Brochure (15 × 10 in).pdfStudents Arsama Brochure (15 × 10 in).pdf
Students Arsama Brochure (15 × 10 in).pdf
 
PreProcessorDirective.ppt
PreProcessorDirective.pptPreProcessorDirective.ppt
PreProcessorDirective.ppt
 
pointers (1).ppt
pointers (1).pptpointers (1).ppt
pointers (1).ppt
 
introds_110116.pdf
introds_110116.pdfintrods_110116.pdf
introds_110116.pdf
 
1.pdf
1.pdf1.pdf
1.pdf
 
vmls-slides.pdf
vmls-slides.pdfvmls-slides.pdf
vmls-slides.pdf
 
OOAD
OOADOOAD
OOAD
 
CN Jntu PPT
CN Jntu PPTCN Jntu PPT
CN Jntu PPT
 
ISAA
ISAAISAA
ISAA
 
Unit-INP.ppt
Unit-INP.pptUnit-INP.ppt
Unit-INP.ppt
 

Recently uploaded

addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
ShahidSultan24
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
Kamal Acharya
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
PrashantGoswami42
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
MuhammadTufail242431
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 

Recently uploaded (20)

addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 

Dos_Commands.ppt

  • 1. DOS Commands  What is a command  Types of DOS Commands – Internal – External  Basic Terms – File (File Types)  Executable File  Non Executable File – Directory – Root Directory – Parent Directory
  • 2. What is a Command  A command is a set of instructions used to perform a specific work  Interpreted by the OS interpreter to a machine language – E.g. <md Ram>,<cd Ram>,etc.
  • 3. Types of Command  Internal Command – Those commands which are already loaded in the Command.COM file while switching to the MS DOS – E.g. CLS, VER, DEL, etc.  External Command – Those commands which are not loaded when loading the Program but are available in the Disk and can be invoked whenever necessary – E.g. FORMAT, TREE, XCOPY, etc.
  • 4. What is a File  A group of organized data (records) which are assembled for one particular purpose and considered as one unit  Stored in permanent storage like hard disk, diskettes,etc.
  • 5. Types of Files  Files can broadly be categorized into two types: – Executable Files – Non-Executable Files (Data Files)
  • 6. What are EXE Files  Exe Files: – Program files that run or execute themselves – Have either COM or EXE or BAT as extension
  • 7. What are Data Files  Non- executable files that contain only the data that we produce  Cannot execute themselves  Need application program to run
  • 8. What is a Directory  A directory is a list of file which is itself a file stored in the computer’s memory so that users can reference it as it is required  Also called a catalog of files
  • 9. Root Directory  The Root directory is that directory that is automatically created when the disk is formatted  It is the current drive that we have been working – E.g. A:, B: (for Floppy Disk Drive) – C:,D: etc. (for Hard Disk Drive)
  • 10. Current / Parent Directory  Current directory is that directory in which you are currently working  Parent directory is that directory which is one level up of the current directory – E.g. C:RamHari> Root directory Parent directory Current directory
  • 11. Getting into MS DOS  To start MS DOS, click on the Start button and choose Run  In the Run dialog box, type CMD or COMMAND which is the EXE file for MS DOS  Click on the OK button
  • 12. Listing the Directories and Files in MS DOS  For listing the Sub-directories and Files within a directory, we use the DIR command  Syntax : – DIR [Directory_name] – E.g. C:>DIR NCIT  Displays all the directories/files within the directory NCIT
  • 13. 1. Dir/p : -Display file and directory page wise. 2. Dir/w :- Display file And directory in horizontal Style. 3. Dir/p/ w:- Display file And directories page wise and horizontal style also. 4. Dir/ah :-Display all hidden files and directories. 5. Dir/a-d : - Display only files. 6. Dir/ad :- Display only Directories. 7. Dir/a/s:-Display all directory and file with subdirectory. 8. Dir/a :- Display All Hidden And Non hidden file and directories. 9. Dir n*.* :Display all file and directory starting with ‘ n ’ alphabet.
  • 14. Creating a Directory in MS DOS  For creating the Directory in MS DOS, we use the MD (Make Directory)command  Syntax: – C:> MD NCIT
  • 15. Changing a Directory in MS DOS  For changing the directory in MS DOS, we use the CD (Change Directory) command  Syntax: – C:>CD NCIT  Now it appears as: – C:NCIT>
  • 16. Switching between Directories  For switching between the directories we use the CD.. Or CD commands  The CD.. Command switches from the current directory to the Parent directory whereas the CD command switches from the current directory to the Root directory
  • 17. Creating Files in MS DOS  For creating the files in DOS, the command COPY CON is used  Syntax: – COPY CON filename Note: File name should not exceed eight characters excluding three characters for extension – E.g. College1.txt
  • 18. Reading Files in MS DOS  For reading the Pre-created files in MS DOS, we use the TYPE command. It displays all the contents that are in the file.  Syntax : – TYPE Filename
  • 19. Renaming Files  For renaming the files in MS DOS we use the REN Command  Syntax: – REN oldfilename newfilename
  • 20. Deleting Files in MS DOS  For deleting files in MS DOS we use the DEL command  Syntax : – DEL Filename
  • 21. Deleting directories in MSDOS  For deleting the directories in MS DOS we use the RD command  Syntax : – RD Directoryname Note : For removing the directory first the directory should be empty
  • 22. Copying Files in MS DOS  In MS DOS, Files can be copied within the same as well as to another Drive / directory  For copying the files in the same drive we use the following syntax : – COPY sourcefile destination – E.g. C:>COPY [c:]NCITfile1.txt C:NCITNGH
  • 23. Copying Files in MS DOS  Files can be copied not only in the same drive but in different drive, too. For copying the files in different drive, a complete location along with the Drive specification should be mentioned  Syntax : – C:>COPY C:NCITfile1 D:NCITNGHNCIT
  • 24. The MOVE Command  The MOVE Command in MS DOS is used to permanently move the files from one location to another.  The COPY command only copies the files leaving the original one, whereas the MOVE command does not leave any copy  Syntax : – C:>MOVE source_file destination_directory  E.g. – C:>MOVE c:NCITfile1 D:NCIT1file2
  • 25. The VOL Command  The VOL command is used to check the Volume of the Disk-drive. It displays the volume of the current disk-drive  Syntax : – VOL Drivename  E.g. – C:> VOL
  • 26. Checking the Version of OS  The VER command is used to check the version of the Operating System that is used in the Computer  Syntax : – C:>VER  E.g. C:>VER Returns the version of OS as Microsoft Windows 2000 [version 5.00.21951]
  • 27. Checking the Date/Time  For checking the date from the system in MS DOS, we use the DATE command. It returns the current system date.  Similarly, the TIME command returns the current time from the system.  Syntax : – C:>DATE  E.g. C:>DATE
  • 28. External Commands Those commands which are not loaded when loading the Program but are available in the Disk and can be invoked whenever necessary E.g. FORMAT, TREE, XCOPY, etc.
  • 29. The Label Command  The Label command is used to check the label of the disk that you have been currently working  Syntax : – Label [drivename]  E.g. – C:>Label
  • 30. XCopy Command  Xcopy command is used to copy the files from one location to another along with the directories/sub-directories  Syntax : – C:>XCOPY c:dir_name d:[dir_name]  E.g. C:>XCOPY c:CSE d:[CSE] Note: For copying all the sub-directories, /S is used
  • 31. The DISKCOPY Command  The DISKCOPY command is used to copy all the files from one disk to the another disk  It can be used to copy files from one floppy disk to another (if two floppy drives exist in the System)  Syntax : – C:> DISKCOPY first_diskdrive: second_diskdrive:  E.g. – C:> DISKCOPY A: B:
  • 32. The DISKCOMP Command  The DISKCOMP command in MS DOS compares the contents of two disks (hard disk or floppy disk). The system first reads the contents of one disk and compares it with the another  Syntax : – C:> DISKCOMP A: B: For defining the no.of sectors, /no. can be used
  • 33. The FORMAT Command  The FORMAT command prepares a new disk for use by organizing the disk into magnetic tracks and sectors  Syntax : – A:>FORMAT [Drive_name]  E.g. – C:>FORMAT A:
  • 34. The TREE Command  The TREE command is used to display all directory pathnames on the specified disk  Syntax : – C:>TREE [disk_name]  E.g. – C:>TREE A:
  • 35. The EDIT Command  The EDIT command in MS DOS is used to edit the files. It provides a different full screen Editor window with a few menu options.  Syntax : – C:>EDIT [filename]  E.g. – C:>EDIT file1
  • 36. The MORE Command  The MORE Command in MS DOS is used to view the contents of directories or files one line after the another, I.e. it displays one line at one press of return (Enter) key  Syntax : – DIR |MORE  E.g. – DIR C:NCIT |MORE A pipeline is used along with the MORE command
  • 37. The PRINT Command  The PRINT Command in MS DOS is used to print the text files  Syntax : – PRINT Filename  E.g. – PRINT File1.txt
  • 38. The PROMPT Command  The PROMPT is used to configure a DOS prompt into our linking  Syntax : – C: PROMPT Promptname  E.g. – PROMPT NCIT Now, the Prompt will be as NCIT