SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Mais procurados

Operating system and its function
Operating system and its functionOperating system and its function
Operating system and its function
Nikhi Jain
 
Types of software
Types of softwareTypes of software
Types of software
latifah2001
 

Mais procurados (20)

Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating System
 
Vi editor in linux
Vi editor in linuxVi editor in linux
Vi editor in linux
 
Dbms
DbmsDbms
Dbms
 
Basic DBMS ppt
Basic DBMS pptBasic DBMS ppt
Basic DBMS ppt
 
Windows operating system
Windows operating systemWindows operating system
Windows operating system
 
Trigger
TriggerTrigger
Trigger
 
Operating system and its function
Operating system and its functionOperating system and its function
Operating system and its function
 
introduction to visual basic PPT.pptx
introduction to visual basic PPT.pptxintroduction to visual basic PPT.pptx
introduction to visual basic PPT.pptx
 
Basic unix commands
Basic unix commandsBasic unix commands
Basic unix commands
 
Know the UNIX Commands
Know the UNIX CommandsKnow the UNIX Commands
Know the UNIX Commands
 
SHELL PROGRAMMING
SHELL PROGRAMMINGSHELL PROGRAMMING
SHELL PROGRAMMING
 
Visual basic
Visual basicVisual basic
Visual basic
 
The database applications
The database applicationsThe database applications
The database applications
 
Database Management System ppt
Database Management System pptDatabase Management System ppt
Database Management System ppt
 
Vi editor
Vi editorVi editor
Vi editor
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
Types of software
Types of softwareTypes of software
Types of software
 
Managing Files
Managing FilesManaging Files
Managing Files
 
Operators in C Programming
Operators in C ProgrammingOperators in C Programming
Operators in C Programming
 
Sdi & mdi
Sdi & mdiSdi & mdi
Sdi & mdi
 

Destaque

Uses of MSExcel
Uses of MSExcelUses of MSExcel
Uses of MSExcel
anam
 
Data structure and its types
Data structure and its typesData structure and its types
Data structure and its types
Navtar Sidhu Brar
 
Computer virus (Microsoft Powerpoint)
Computer virus (Microsoft Powerpoint)Computer virus (Microsoft Powerpoint)
Computer virus (Microsoft Powerpoint)
ainizbahari97
 
Basic concepts of computer Networking
Basic concepts of computer NetworkingBasic concepts of computer Networking
Basic concepts of computer Networking
Hj Habib
 

Destaque (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
 
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
 
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
 

Semelhante a Internal commands of dos

Anandha ganesh linux1.ppt
Anandha ganesh linux1.pptAnandha ganesh linux1.ppt
Anandha ganesh linux1.ppt
anandha ganesh
 

Semelhante a 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
 

Último

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
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
QucHHunhnh
 

Último (20)

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
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
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.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
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
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
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 

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