SlideShare une entreprise Scribd logo
1  sur  5
Internal commands

 Built-in the file called command.com. So the command.com file works as an interpreter as
well as contains all the internal commands.

        e.g. Date, Time, Cls, Dir etc....



Date:

   To display the system date and allows the user to change the system date.
    mm-dd-yy(month,date and year in 2 digits)


         ex:

                  c:date

                  current date is:10-23-11

                  enter new date :

Time:

         => To display the system time and allowes the user to change the system time.



The format is

         hh:mm:ss:ms a/p(hours:minutes:seconds:microseconds am/pm)

         ex:

                  c:time

                  current time is: 7:00:05.50p

                  enter new time:



Clearscreen:

         To clear the content or text in the screen cls command is used.



         ex:

         c:cls
Directory:

         we can display the list of all the files using dir command. dir is nothing to display all
the files and sub-directories.

        c:dir

example

        dir/p            =>    it will continue with the next set of files after any key is
pressed.



        dir/w            => it will be display in coloumn wise



        dir/on       ----- the files are sorted according to the name of files,in ascending
order



        dir/o-n     ------ desending order



        dir/oe           --- files are sorted according to the extension of file.



        dir/od          --- files are sorted according to the date &time of creation.recently
created file will come first.



        dir/os--- files are sorted according to the size of file.smallest file will come first



        dir/o-s       ----- files are sorted according to the size of file.largest file will come
first



        dir/l    --- file names are displayed in lower case letters.



        dir/b --- bare output. only file names
dir/s   --- display all the files and subdirectories recursively.

Wild card symbols

          * refers muliple character.

          ? refers to a single character.

example

          dir a*.* ==> display all the files with "a" and can have any extension.

          dir *.txt ==> display all the files with extension .txt.

md:-(make directory)

          we can create subdirectory into the main directory or into some other dirctory.



cd(change directory)

          we can change the current working directory to some other directory.

example

          c:>md projects

          c:>cd projects

          c:projects>

copy con

        This command is used to create a new file.whetever we have typed into the
terminal is copied into the file name we have specified.

          ex:

                   c:copy con myfile

                   I want to learn MS DOS

                   ^z

                            1 file(s) copied



Type

          The type command is used to display all the contents of a file that has been already
created
ex:

                     c:projects>type myfile

                     I want to learn MS DOS

delete

         If you want to delete or erase a file we can use delete or erase command.

         ex:

                     c:>del projects



copy

       We can copy the text of a file into another.like a carbon copy of a document we
can make duplication copy.



         syntax:

                     copy old file name     new file name

         example

                     c:copy myfile newfile



 rename

         we can rename the existing file using the rename or ren command.



         syntax:

                     ren old file name     new file name

         example

                     c:ren myfile file1

LABEL & VOL:

    You can change the volume label by using 'LABEL' this command. VOL command
displays the current volume name and serial number.

    >label
Deleting directory / folder
  To remove a directory, it should be empty.

 syntax

          RD[Path]<Directory name>

       example:          c:rd myfolder




Read more: http://www.livetolearn.in/site/book/ms-dos/basic-commands#ixzz28JBHACIe

Contenu connexe

Tendances (20)

CHAP 2 - FILE MANAGEMENT
CHAP 2 - FILE MANAGEMENTCHAP 2 - FILE MANAGEMENT
CHAP 2 - FILE MANAGEMENT
 
Operating system and its function
Operating system and its functionOperating system and its function
Operating system and its function
 
Ms DOS
Ms DOSMs DOS
Ms DOS
 
Operating System PPT
Operating System PPTOperating System PPT
Operating System PPT
 
Microsoft Word
Microsoft WordMicrosoft Word
Microsoft Word
 
System software and its types
System software and its typesSystem software and its types
System software and its types
 
Command prompt presentation
Command prompt presentationCommand prompt presentation
Command prompt presentation
 
Vi editor
Vi editorVi editor
Vi editor
 
ppt on cmd cammand
ppt on cmd cammandppt on cmd cammand
ppt on cmd cammand
 
Functions Of Operating System
Functions Of Operating SystemFunctions Of Operating System
Functions Of Operating System
 
File management ppt
File management pptFile management ppt
File management ppt
 
DOS - Disk Operating System
DOS - Disk Operating SystemDOS - Disk Operating System
DOS - Disk Operating System
 
Computer virus
Computer virusComputer virus
Computer virus
 
Computer Fundamentals
Computer FundamentalsComputer Fundamentals
Computer Fundamentals
 
Types Of Operating Systems
Types Of Operating SystemsTypes Of Operating Systems
Types Of Operating Systems
 
MS Dos command
MS Dos commandMS Dos command
MS Dos command
 
Operating system.ppt (1)
Operating system.ppt (1)Operating system.ppt (1)
Operating system.ppt (1)
 
Introduction to MS Word
Introduction to MS WordIntroduction to MS Word
Introduction to MS Word
 
Visual programming
Visual programmingVisual programming
Visual programming
 
Storage management
Storage managementStorage management
Storage management
 

En vedette

Dos commad. by ammar nawab ppt
Dos commad. by ammar nawab pptDos commad. by ammar nawab ppt
Dos commad. by ammar nawab pptAmmar_n
 
Uses of Excel
Uses of ExcelUses of Excel
Uses of Exceljarleewil
 
Uses of MSExcel
Uses of MSExcelUses of MSExcel
Uses of MSExcelanam
 
20 Unique Uses of Excel Spreadsheets
20 Unique Uses of Excel Spreadsheets20 Unique Uses of Excel Spreadsheets
20 Unique Uses of Excel SpreadsheetsNick Weisenberger
 
Data structure and its types
Data structure and its typesData structure and its types
Data structure and its typesNavtar Sidhu Brar
 
Computer virus (Microsoft Powerpoint)
Computer virus (Microsoft Powerpoint)Computer virus (Microsoft Powerpoint)
Computer virus (Microsoft Powerpoint)ainizbahari97
 
Computer Virus powerpoint presentation
Computer Virus powerpoint presentationComputer Virus powerpoint presentation
Computer Virus powerpoint presentationshohrabkhan
 
Basic concepts of computer Networking
Basic concepts of computer NetworkingBasic concepts of computer Networking
Basic concepts of computer NetworkingHj Habib
 
BASIC CONCEPTS OF COMPUTER NETWORKS
BASIC CONCEPTS OF COMPUTER NETWORKS BASIC CONCEPTS OF COMPUTER NETWORKS
BASIC CONCEPTS OF COMPUTER NETWORKS Kak Yong
 
Introduction to computer network
Introduction to computer networkIntroduction to computer network
Introduction to computer networkAshita Agrawal
 

En vedette (18)

MS DOS
MS DOSMS DOS
MS DOS
 
MS Dos commands
MS Dos commandsMS Dos commands
MS Dos commands
 
Dos commad. by ammar nawab ppt
Dos commad. by ammar nawab pptDos commad. by ammar nawab ppt
Dos commad. by ammar nawab ppt
 
Dos command for hackers
Dos command for hackersDos command for hackers
Dos command for hackers
 
Command
CommandCommand
Command
 
Dos commands
Dos commandsDos commands
Dos commands
 
Uses of Excel
Uses of ExcelUses of Excel
Uses of Excel
 
Uses of MSExcel
Uses of MSExcelUses of MSExcel
Uses of MSExcel
 
20 Unique Uses of Excel Spreadsheets
20 Unique Uses of Excel Spreadsheets20 Unique Uses of Excel Spreadsheets
20 Unique Uses of Excel Spreadsheets
 
COMPUTERS ( types of viruses)
COMPUTERS ( types of viruses)COMPUTERS ( types of viruses)
COMPUTERS ( types of viruses)
 
Data structure and its types
Data structure and its typesData structure and its types
Data structure and its types
 
Computer virus (Microsoft Powerpoint)
Computer virus (Microsoft Powerpoint)Computer virus (Microsoft Powerpoint)
Computer virus (Microsoft Powerpoint)
 
Computer network ppt
Computer network pptComputer network ppt
Computer network ppt
 
Computer Virus powerpoint presentation
Computer Virus powerpoint presentationComputer Virus powerpoint presentation
Computer Virus powerpoint presentation
 
Networking
NetworkingNetworking
Networking
 
Basic concepts of computer Networking
Basic concepts of computer NetworkingBasic concepts of computer Networking
Basic concepts of computer Networking
 
BASIC CONCEPTS OF COMPUTER NETWORKS
BASIC CONCEPTS OF COMPUTER NETWORKS BASIC CONCEPTS OF COMPUTER NETWORKS
BASIC CONCEPTS OF COMPUTER NETWORKS
 
Introduction to computer network
Introduction to computer networkIntroduction to computer network
Introduction to computer network
 

Similaire à Internal commands of dos

Similaire à Internal commands of dos (20)

Part 2
Part 2Part 2
Part 2
 
40 basic linux command
40 basic linux command40 basic linux command
40 basic linux command
 
40 basic linux command
40 basic linux command40 basic linux command
40 basic linux command
 
linux-lecture4.ppt
linux-lecture4.pptlinux-lecture4.ppt
linux-lecture4.ppt
 
Linux commands and file structure
Linux commands and file structureLinux commands and file structure
Linux commands and file structure
 
ch6.ppsx
ch6.ppsxch6.ppsx
ch6.ppsx
 
Basic shell programs assignment 1_solution_manual
Basic shell programs assignment 1_solution_manualBasic shell programs assignment 1_solution_manual
Basic shell programs assignment 1_solution_manual
 
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
 
Unix3
Unix3Unix3
Unix3
 
Unix Basics For Testers
Unix Basics For TestersUnix Basics For Testers
Unix Basics For Testers
 
Unix cmd
Unix cmdUnix cmd
Unix cmd
 
Anandha ganesh linux1.ppt
Anandha ganesh linux1.pptAnandha ganesh linux1.ppt
Anandha ganesh linux1.ppt
 
Dos%20commands(1)
Dos%20commands(1)Dos%20commands(1)
Dos%20commands(1)
 
Examples -partII
Examples -partIIExamples -partII
Examples -partII
 
Linux cheat sheet
Linux cheat sheetLinux cheat sheet
Linux cheat sheet
 
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
 
Lesson 3 Working with Files in Linux
Lesson 3 Working with Files in LinuxLesson 3 Working with Files in Linux
Lesson 3 Working with Files in Linux
 
LinuxLabBasics.ppt
LinuxLabBasics.pptLinuxLabBasics.ppt
LinuxLabBasics.ppt
 
linux commands.pdf
linux commands.pdflinux commands.pdf
linux commands.pdf
 

Dernier

Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 

Dernier (20)

Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 

Internal commands of dos

  • 1. Internal commands Built-in the file called command.com. So the command.com file works as an interpreter as well as contains all the internal commands. e.g. Date, Time, Cls, Dir etc.... Date: To display the system date and allows the user to change the system date. mm-dd-yy(month,date and year in 2 digits) ex: c:date current date is:10-23-11 enter new date : Time: => To display the system time and allowes the user to change the system time. The format is hh:mm:ss:ms a/p(hours:minutes:seconds:microseconds am/pm) ex: c:time current time is: 7:00:05.50p enter new time: Clearscreen: To clear the content or text in the screen cls command is used. ex: c:cls
  • 2. Directory: we can display the list of all the files using dir command. dir is nothing to display all the files and sub-directories. c:dir example dir/p => it will continue with the next set of files after any key is pressed. dir/w => it will be display in coloumn wise dir/on ----- the files are sorted according to the name of files,in ascending order dir/o-n ------ desending order dir/oe --- files are sorted according to the extension of file. dir/od --- files are sorted according to the date &time of creation.recently created file will come first. dir/os--- files are sorted according to the size of file.smallest file will come first dir/o-s ----- files are sorted according to the size of file.largest file will come first dir/l --- file names are displayed in lower case letters. dir/b --- bare output. only file names
  • 3. dir/s --- display all the files and subdirectories recursively. Wild card symbols * refers muliple character. ? refers to a single character. example dir a*.* ==> display all the files with "a" and can have any extension. dir *.txt ==> display all the files with extension .txt. md:-(make directory) we can create subdirectory into the main directory or into some other dirctory. cd(change directory) we can change the current working directory to some other directory. example c:>md projects c:>cd projects c:projects> copy con This command is used to create a new file.whetever we have typed into the terminal is copied into the file name we have specified. ex: c:copy con myfile I want to learn MS DOS ^z 1 file(s) copied Type The type command is used to display all the contents of a file that has been already created
  • 4. ex: c:projects>type myfile I want to learn MS DOS delete If you want to delete or erase a file we can use delete or erase command. ex: c:>del projects copy We can copy the text of a file into another.like a carbon copy of a document we can make duplication copy. syntax: copy old file name new file name example c:copy myfile newfile rename we can rename the existing file using the rename or ren command. syntax: ren old file name new file name example c:ren myfile file1 LABEL & VOL: You can change the volume label by using 'LABEL' this command. VOL command displays the current volume name and serial number. >label
  • 5. Deleting directory / folder To remove a directory, it should be empty. syntax RD[Path]<Directory name> example: c:rd myfolder Read more: http://www.livetolearn.in/site/book/ms-dos/basic-commands#ixzz28JBHACIe