SlideShare une entreprise Scribd logo
1  sur  13
Télécharger pour lire hors ligne
LECTURE SCHEDULE 5
Operating System – Some Fundamental DOS Commands,Rules for naming files in
DOS and Types of files
Operating System
Operating system is a set of software that controls and manages hardware and basic system
operations for a computer. The operating system loads programs into the computer's memory,
runs these programs, and manages peripherals like disks and printers.
Example:
Disk Operating System (DOS)
Windows
LINUX
Mac
UNIX
Disk Operating System (DOS)
• In the 1980s or early 1990s, the operating system that shipped with most PCs was a
version of the Disk Operating System (DOS) created by Microsoft: MS-DOS.
• MS-DOS is a disk-based, single-user, single-task and character based user interface
(CUI) operating system.
Goto MSDOS from Windows Operating System:
Click Start Button  Choose Program  Choose Accessories  Click Command Prompt as
shown below:
Or Click Start Button  Choose Run  Type cmd in the Open tab as shown below:
Command Prompt will get displayed as shown:
The DOS commands can be entered in the command prompt and executed.
Some Examples of DOS commands
DIR Command
The dir command allows you to see the available files in the current and/or parent directories.
Examples:
1. DIR
Lists all files and directories in the directory that you are currently in.
2. dir /w
If information on the date / time and other information on the files are not
needed, then this command can be used to list just the files and directories going
horizontally, taking as little as space needed.
3. dir /on
List the files in alphabetical order by the names of the files.
4. dir /o-n
List the files in reverse alphabetical order by the names of the files.
FORMAT Command
FORMAT command is used to erase all information of a diskette or fixed drive.
1. format a:
Would erase all the contents off a disk. Commonly used on a diskette that has not been
formatted or on a diskette you wish to erase.
2. format a: /q
Quickly erases all the contents of a floppy diskette. Commonly used to quickly erase all
information on the diskette.
3. format c:
This would erase all the contents of C: hard disk drive. In other words, unless you wish
to erase all your computer's information, this command should not be done unless you're
planning to start over.
COPY Command
COPY command allows to copy one or more files to an alternate location.
Examples:
1. copy *.* a:
Copy all files in the current directory to the a disk drive.
2. copy file1.txt file2.txt
Copy the contents of file1.txt to file2.txt
3. copy myfile1.txt+myfile2.txt
Copy the contents in myfile2.txt and combines it with the contents in myfile1.txt.
PATH Command
Path is used to specify the location where MS-DOS looks when using a command. For example,
when using the command "format", if the path is not specified to where the command is you will
receive bad command or file name.
Example:
LABEL Command
Label is used to view or change the label of the computer disk drives.
Example:
label a: mydisk
This would label the disk currently in the drive to "mydisk", but will not label if your disk is
write protected.
VOL Command
VOL command displays the volume information about the designated drive.
MD (Make Directory) Command
MD command allows to create directories in MS-DOS.
Examples:
1. md test
Creates the "test" directory in the directory in the currently directory.
2. md c:test
Creates the "test" directory in the c: directory.
CD (Change Directory) Command
CD (Change Directory) is a command used to switch directories in MS-DOS.
Examples:
1. cd
Goes to the highest level, the root of the drive.
2. cd..
Goes back one directory.
3. cd
Typing cd alone will print the working directory.
DEL Command
DEL command is used to delete files from the computer. Deleting files from MS-DOS does not
send files to the recycle bin.
Examples:
1. del test.tmp
Deletes the test.tmp in the directory that you currently are in, if the file exists.
2. del c:windowstest.tmp
Delete the c:windowstest.tmp in the windows directory if it exists.
Rules for naming files in DOS
1. The combination of the following characters can be used for writing names of directories and
files:
Alphabets A to Z (both capital and small).
Digits 0 to 9.
Special characters like spaces ' ! A 0 $ο & # @ % '-{}[]+-=-- .
2. Some special characters which cannot be used are? /  : 1< > II *.
3. There are some words specifically reserved for special files and are not allowed if used
singly. They are CON, COM1, COM2, COM3. COM4, AVX, LPT1, LPT2, LPT3, PRN, NUL.
These words can be used in combination such as ASCon, deltacom1, Panamavx. etc.
4. Files with extension names like .EXE, .COM and .BAT are called executable files and are
given a special status by DOS.
5. Dot (.) is allowed only once.
Types of files in DOS
DOS supports a wide variety of files. The type of the file can be identified with the extension of
the file in the filename. The three letters following the name of the file is called as the extension
of the file.
Examples:
.bak
Used by programs and users to make a copy of an existing file for safety and/or archive
purposes.
.bas
A basic computer-language program file.
.bat
This is used for a batch file. Such a file is a series of commands in mostly plain english
which perform an operation in DOS automatically. They come with some programs and
may also be written by a user to make shortcuts or perform operations like sorting or
backups.
.bin
A binary file.
.c
A file of programming language in the C format.
.dat
Used to hold information about a particular aspect of a program or about a particular
operation. The latter may update a .dat file to reflect recent changes. Other operations in
the program may then view this file and other .dat files while determining a course of
action.
.db or .dbf
These are used by data base programs to hold the users' data information. Other
programs may use them to hold information used by the application itself for such things
as printer specifications regarding printer selection by the user.
.dir
Used to house a directory list, especially for communications programs.
.exe
An executable file.
References
1. http://www.chebucto.ns.ca/~ak621/DOS/DOS-Ext.html
2. http://www.computerhope.com/msdos.htm

Contenu connexe

Tendances

Tendances (20)

Vi editor in linux
Vi editor in linuxVi editor in linux
Vi editor in linux
 
Unix ppt
Unix pptUnix ppt
Unix ppt
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating Systems
 
Vi editor
Vi   editorVi   editor
Vi editor
 
Unix ppt
Unix pptUnix ppt
Unix ppt
 
Dos%20commands(1)
Dos%20commands(1)Dos%20commands(1)
Dos%20commands(1)
 
DOS - Disk Operating System
DOS - Disk Operating SystemDOS - Disk Operating System
DOS - Disk Operating System
 
Basic Unix
Basic UnixBasic Unix
Basic Unix
 
DOS commands
DOS commandsDOS commands
DOS commands
 
Linux File System
Linux File SystemLinux File System
Linux File System
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
 
Linux practicals T.Y.B.ScIT
Linux practicals T.Y.B.ScITLinux practicals T.Y.B.ScIT
Linux practicals T.Y.B.ScIT
 
Basic dos-commands
Basic dos-commandsBasic dos-commands
Basic dos-commands
 
MS DOS
MS DOSMS DOS
MS DOS
 
Networking in Windows Operating System
Networking in Windows Operating SystemNetworking in Windows Operating System
Networking in Windows Operating System
 
Basics of shell programming
Basics of shell programmingBasics of shell programming
Basics of shell programming
 
Linux installation on a Virtual Machine
Linux installation on a Virtual MachineLinux installation on a Virtual Machine
Linux installation on a Virtual Machine
 
VI editor in unix
VI editor in unix VI editor in unix
VI editor in unix
 
File Sever
File SeverFile Sever
File Sever
 
Unix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell ScriptUnix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell Script
 

En vedette

A z index of the windows cmd command line
A z index of the windows cmd command lineA z index of the windows cmd command line
A z index of the windows cmd command lineproser tech
 
Disk operating system
Disk operating systemDisk operating system
Disk operating systemRaza Jaan
 
100+ run commands for windows
100+ run commands for windows 100+ run commands for windows
100+ run commands for windows Anand Garg
 
Howdah - An Application using Pylons, PostgreSQL, Simpycity and Exceptable
Howdah - An Application using Pylons, PostgreSQL, Simpycity and ExceptableHowdah - An Application using Pylons, PostgreSQL, Simpycity and Exceptable
Howdah - An Application using Pylons, PostgreSQL, Simpycity and ExceptableCommand Prompt., Inc
 
Dos commad. by ammar nawab ppt
Dos commad. by ammar nawab pptDos commad. by ammar nawab ppt
Dos commad. by ammar nawab pptAmmar_n
 
How to Earn Money with Google Adsense
How to Earn Money with Google AdsenseHow to Earn Money with Google Adsense
How to Earn Money with Google AdsenseAbundioTeca
 
How To Install Wordpress Into Your Paid Web Hosting
How To Install Wordpress Into Your Paid Web HostingHow To Install Wordpress Into Your Paid Web Hosting
How To Install Wordpress Into Your Paid Web HostingRowela Rabi
 

En vedette (16)

A z index of the windows cmd command line
A z index of the windows cmd command lineA z index of the windows cmd command line
A z index of the windows cmd command line
 
Introduction to ms dos
Introduction to ms dosIntroduction to ms dos
Introduction to ms dos
 
Disk operating system
Disk operating systemDisk operating system
Disk operating system
 
Comands of dos
Comands of dosComands of dos
Comands of dos
 
100+ run commands for windows
100+ run commands for windows 100+ run commands for windows
100+ run commands for windows
 
CMD Command
CMD CommandCMD Command
CMD Command
 
Command Line Interface
Command Line InterfaceCommand Line Interface
Command Line Interface
 
Howdah - An Application using Pylons, PostgreSQL, Simpycity and Exceptable
Howdah - An Application using Pylons, PostgreSQL, Simpycity and ExceptableHowdah - An Application using Pylons, PostgreSQL, Simpycity and Exceptable
Howdah - An Application using Pylons, PostgreSQL, Simpycity and Exceptable
 
Windows Hacking
Windows HackingWindows Hacking
Windows Hacking
 
Pakistan presentation
Pakistan presentation Pakistan presentation
Pakistan presentation
 
Disk operating system
Disk operating systemDisk operating system
Disk operating system
 
Dos commad. by ammar nawab ppt
Dos commad. by ammar nawab pptDos commad. by ammar nawab ppt
Dos commad. by ammar nawab ppt
 
Weekly Blog Planner PDF
Weekly Blog Planner PDFWeekly Blog Planner PDF
Weekly Blog Planner PDF
 
How to Earn Money with Google Adsense
How to Earn Money with Google AdsenseHow to Earn Money with Google Adsense
How to Earn Money with Google Adsense
 
Live Your Dreams By Mr. Sudhir Pai & Mr. Ramesh Bandaram
Live Your Dreams By Mr. Sudhir Pai & Mr. Ramesh BandaramLive Your Dreams By Mr. Sudhir Pai & Mr. Ramesh Bandaram
Live Your Dreams By Mr. Sudhir Pai & Mr. Ramesh Bandaram
 
How To Install Wordpress Into Your Paid Web Hosting
How To Install Wordpress Into Your Paid Web HostingHow To Install Wordpress Into Your Paid Web Hosting
How To Install Wordpress Into Your Paid Web Hosting
 

Similaire à CMD Command prompts

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 Toolszatax
 
Lect basic computer
Lect basic computer Lect basic computer
Lect basic computer susir
 
Ms dos
Ms dosMs dos
Ms dosNICT
 
ICPS operating system and services Unit 3 Notes .pdf
ICPS operating system and services Unit 3 Notes .pdfICPS operating system and services Unit 3 Notes .pdf
ICPS operating system and services Unit 3 Notes .pdfshubhangisonawane6
 
Lab6FolderF1GraphicPic.pdfPicture of OS Lab.docx
Lab6FolderF1GraphicPic.pdfPicture of OS  Lab.docxLab6FolderF1GraphicPic.pdfPicture of OS  Lab.docx
Lab6FolderF1GraphicPic.pdfPicture of OS Lab.docxsmile790243
 
disk-operating-system.ppt
disk-operating-system.pptdisk-operating-system.ppt
disk-operating-system.pptRatishKumar33
 
Module 3 Using Linux Softwares.
Module 3 Using Linux Softwares.Module 3 Using Linux Softwares.
Module 3 Using Linux Softwares.Tushar B Kute
 
Ms dos full explanation
Ms dos full explanation Ms dos full explanation
Ms dos full explanation ParmvirSingh11
 
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).pdfRohitRoshanBengROHIT
 

Similaire à CMD Command prompts (20)

Dos 16
Dos 16Dos 16
Dos 16
 
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
 
ch6.ppsx
ch6.ppsxch6.ppsx
ch6.ppsx
 
Lect basic computer
Lect basic computer Lect basic computer
Lect basic computer
 
p_ms-dos-new.ppt
p_ms-dos-new.pptp_ms-dos-new.ppt
p_ms-dos-new.ppt
 
Dos_Commands.ppt
Dos_Commands.pptDos_Commands.ppt
Dos_Commands.ppt
 
Msdos crash course
Msdos crash courseMsdos crash course
Msdos crash course
 
Dos commands new
Dos commands new Dos commands new
Dos commands new
 
Comp practical
Comp practicalComp practical
Comp practical
 
Ms dos
Ms dosMs dos
Ms dos
 
lab2.pptx.pdf
lab2.pptx.pdflab2.pptx.pdf
lab2.pptx.pdf
 
ICPS operating system and services Unit 3 Notes .pdf
ICPS operating system and services Unit 3 Notes .pdfICPS operating system and services Unit 3 Notes .pdf
ICPS operating system and services Unit 3 Notes .pdf
 
Lab6FolderF1GraphicPic.pdfPicture of OS Lab.docx
Lab6FolderF1GraphicPic.pdfPicture of OS  Lab.docxLab6FolderF1GraphicPic.pdfPicture of OS  Lab.docx
Lab6FolderF1GraphicPic.pdfPicture of OS Lab.docx
 
disk-operating-system.ppt
disk-operating-system.pptdisk-operating-system.ppt
disk-operating-system.ppt
 
Module 3 Using Linux Softwares.
Module 3 Using Linux Softwares.Module 3 Using Linux Softwares.
Module 3 Using Linux Softwares.
 
Dos commands
Dos commandsDos commands
Dos commands
 
Ms dos full explanation
Ms dos full explanation Ms dos full explanation
Ms dos full explanation
 
Part 2
Part 2Part 2
Part 2
 
Disk Operating System.pptx
Disk Operating System.pptxDisk Operating System.pptx
Disk Operating System.pptx
 
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
 

Dernier

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 

Dernier (20)

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 

CMD Command prompts

  • 1. LECTURE SCHEDULE 5 Operating System – Some Fundamental DOS Commands,Rules for naming files in DOS and Types of files Operating System Operating system is a set of software that controls and manages hardware and basic system operations for a computer. The operating system loads programs into the computer's memory, runs these programs, and manages peripherals like disks and printers. Example: Disk Operating System (DOS) Windows LINUX Mac
  • 2. UNIX Disk Operating System (DOS) • In the 1980s or early 1990s, the operating system that shipped with most PCs was a version of the Disk Operating System (DOS) created by Microsoft: MS-DOS. • MS-DOS is a disk-based, single-user, single-task and character based user interface (CUI) operating system. Goto MSDOS from Windows Operating System: Click Start Button  Choose Program  Choose Accessories  Click Command Prompt as shown below: Or Click Start Button  Choose Run  Type cmd in the Open tab as shown below:
  • 3. Command Prompt will get displayed as shown: The DOS commands can be entered in the command prompt and executed.
  • 4. Some Examples of DOS commands DIR Command The dir command allows you to see the available files in the current and/or parent directories. Examples: 1. DIR Lists all files and directories in the directory that you are currently in. 2. dir /w If information on the date / time and other information on the files are not needed, then this command can be used to list just the files and directories going horizontally, taking as little as space needed.
  • 5. 3. dir /on List the files in alphabetical order by the names of the files. 4. dir /o-n List the files in reverse alphabetical order by the names of the files.
  • 6. FORMAT Command FORMAT command is used to erase all information of a diskette or fixed drive. 1. format a: Would erase all the contents off a disk. Commonly used on a diskette that has not been formatted or on a diskette you wish to erase. 2. format a: /q Quickly erases all the contents of a floppy diskette. Commonly used to quickly erase all information on the diskette. 3. format c: This would erase all the contents of C: hard disk drive. In other words, unless you wish to erase all your computer's information, this command should not be done unless you're planning to start over.
  • 7. COPY Command COPY command allows to copy one or more files to an alternate location. Examples: 1. copy *.* a: Copy all files in the current directory to the a disk drive. 2. copy file1.txt file2.txt Copy the contents of file1.txt to file2.txt 3. copy myfile1.txt+myfile2.txt Copy the contents in myfile2.txt and combines it with the contents in myfile1.txt. PATH Command Path is used to specify the location where MS-DOS looks when using a command. For example, when using the command "format", if the path is not specified to where the command is you will receive bad command or file name.
  • 8. Example: LABEL Command Label is used to view or change the label of the computer disk drives. Example: label a: mydisk This would label the disk currently in the drive to "mydisk", but will not label if your disk is write protected. VOL Command VOL command displays the volume information about the designated drive.
  • 9. MD (Make Directory) Command MD command allows to create directories in MS-DOS. Examples: 1. md test Creates the "test" directory in the directory in the currently directory. 2. md c:test Creates the "test" directory in the c: directory. CD (Change Directory) Command CD (Change Directory) is a command used to switch directories in MS-DOS. Examples: 1. cd Goes to the highest level, the root of the drive.
  • 10. 2. cd.. Goes back one directory.
  • 11. 3. cd Typing cd alone will print the working directory. DEL Command DEL command is used to delete files from the computer. Deleting files from MS-DOS does not send files to the recycle bin. Examples: 1. del test.tmp Deletes the test.tmp in the directory that you currently are in, if the file exists. 2. del c:windowstest.tmp Delete the c:windowstest.tmp in the windows directory if it exists. Rules for naming files in DOS 1. The combination of the following characters can be used for writing names of directories and files:
  • 12. Alphabets A to Z (both capital and small). Digits 0 to 9. Special characters like spaces ' ! A 0 $ο & # @ % '-{}[]+-=-- . 2. Some special characters which cannot be used are? / : 1< > II *. 3. There are some words specifically reserved for special files and are not allowed if used singly. They are CON, COM1, COM2, COM3. COM4, AVX, LPT1, LPT2, LPT3, PRN, NUL. These words can be used in combination such as ASCon, deltacom1, Panamavx. etc. 4. Files with extension names like .EXE, .COM and .BAT are called executable files and are given a special status by DOS. 5. Dot (.) is allowed only once. Types of files in DOS DOS supports a wide variety of files. The type of the file can be identified with the extension of the file in the filename. The three letters following the name of the file is called as the extension of the file. Examples: .bak Used by programs and users to make a copy of an existing file for safety and/or archive purposes. .bas A basic computer-language program file. .bat This is used for a batch file. Such a file is a series of commands in mostly plain english which perform an operation in DOS automatically. They come with some programs and may also be written by a user to make shortcuts or perform operations like sorting or backups.
  • 13. .bin A binary file. .c A file of programming language in the C format. .dat Used to hold information about a particular aspect of a program or about a particular operation. The latter may update a .dat file to reflect recent changes. Other operations in the program may then view this file and other .dat files while determining a course of action. .db or .dbf These are used by data base programs to hold the users' data information. Other programs may use them to hold information used by the application itself for such things as printer specifications regarding printer selection by the user. .dir Used to house a directory list, especially for communications programs. .exe An executable file. References 1. http://www.chebucto.ns.ca/~ak621/DOS/DOS-Ext.html 2. http://www.computerhope.com/msdos.htm