SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt? (20)

Tokens in C++
Tokens in C++Tokens in C++
Tokens in C++
 
Files in php
Files in phpFiles in php
Files in php
 
C programs
C programsC programs
C programs
 
Control statements in c
Control statements in cControl statements in c
Control statements in c
 
Constructor and Destructor in c++
Constructor  and Destructor in c++Constructor  and Destructor in c++
Constructor and Destructor in c++
 
structured programming
structured programmingstructured programming
structured programming
 
Shell scripting
Shell scriptingShell scripting
Shell scripting
 
Constructors and destructors
Constructors and destructorsConstructors and destructors
Constructors and destructors
 
Sql fundamentals
Sql fundamentalsSql fundamentals
Sql fundamentals
 
Loops in c
Loops in cLoops in c
Loops in c
 
Packages - PL/SQL
Packages - PL/SQLPackages - PL/SQL
Packages - PL/SQL
 
Structure and Enum in c#
Structure and Enum in c#Structure and Enum in c#
Structure and Enum in c#
 
Arrays searching-sorting
Arrays searching-sortingArrays searching-sorting
Arrays searching-sorting
 
Preprocessors
PreprocessorsPreprocessors
Preprocessors
 
Data types in c++
Data types in c++Data types in c++
Data types in c++
 
Header files in c
Header files in cHeader files in c
Header files in c
 
Unix shell scripts
Unix shell scriptsUnix shell scripts
Unix shell scripts
 
File operations in c
File operations in cFile operations in c
File operations in c
 
Inheritance in OOPS
Inheritance in OOPSInheritance in OOPS
Inheritance in OOPS
 
Unit 5. Control Statement
Unit 5. Control StatementUnit 5. Control Statement
Unit 5. Control Statement
 

Andere mochten auch

Dos commad. by ammar nawab ppt
Dos commad. by ammar nawab pptDos commad. by ammar nawab ppt
Dos commad. by ammar nawab pptAmmar_n
 
Unit II - MS DOS Commands
Unit II - MS DOS CommandsUnit II - MS DOS Commands
Unit II - MS DOS CommandsHepsijeba
 
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
 
Disk operating system
Disk operating systemDisk operating system
Disk operating systemRaza Jaan
 
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
 
Operating system and its function
Operating system and its functionOperating system and its function
Operating system and its functionNikhi Jain
 
Computer Virus powerpoint presentation
Computer Virus powerpoint presentationComputer Virus powerpoint presentation
Computer Virus powerpoint presentationshohrabkhan
 

Andere mochten auch (20)

MS DOS
MS DOSMS DOS
MS DOS
 
MS Dos commands
MS Dos commandsMS Dos commands
MS Dos commands
 
MS Dos command
MS Dos commandMS Dos command
MS Dos command
 
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
 
Unit II - MS DOS Commands
Unit II - MS DOS CommandsUnit II - MS DOS Commands
Unit II - MS 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
 
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
 
Disk operating system
Disk operating systemDisk operating system
Disk operating system
 
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
 
Operating system and its function
Operating system and its functionOperating system and its function
Operating system and its function
 
Computer Virus powerpoint presentation
Computer Virus powerpoint presentationComputer Virus powerpoint presentation
Computer Virus powerpoint presentation
 

Ähnlich wie Internal commands of dos

Ähnlich wie 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
 

Kürzlich hochgeladen

Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
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
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
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
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 

Kürzlich hochgeladen (20)

Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
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
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
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
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 

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