SlideShare a Scribd company logo
1 of 27
1
Command Line Interface
2
Lecture Objectives
 Explain the operation of the command line
interface
 Execute fundamental commands from the
command line interface
 Manipulate files and folders from the
command line
3
How does the Command Line Work?
 Similar to Instant Message conversation with
computer
 The prompt indicates that the computer is
ready to receive a command
 Command is typed and ENTER is pressed
 PC executes command
 Prompt is displayed, indicating that the
computer is waiting for the next command
3/9/2020
4
Accessing the Command Line
 Run dialog box
 Start menu under Programs | Accessories
– Win 9x/Me link is named MS-DOS prompt
– Win NT, 2000, XP link is called Command Prompt
 To close command line interface
– Type Exit at command line and press enter
– Close the window
3/9/2020
5
Command Prompt
 VERY IMPORTANT:
The command prompt is always focused on a specific
folder.
Any commands executed are performed on the files in the
folder on which the prompt is focused.
Examples: C:> root directory of C: drive
C:DiplomaAPLUS>
You must focus the prompt on the drive and folder where
you want to work
3/9/2020
6
Filenames and File Formats
 In Windows, each program and piece of
data is stored as an individual file
 Each file has a name, stored with the file
on the drive
 Names have 2 parts: filename and
extension
3/9/2020
7
Eight-dot-Three naming system
 File name cannot be more that 8 chrs
 Extension can be up to 3 chrs, OPTIONAL
 Following chrs cannot be used in
filename or extension:
– /  [ ] | = + ; , * ? And division symbol
3/9/2020
8
Windows naming rules
 All versions starting with Win 9x are not
limited be 8.3
 Filenames up to 255 chrs
 Win 9x has backward compatibility with
DOS by creating 2 names for every file,
8.3 name and a long file name if
necessary
3/9/2020
9
File extensions
 Describes the type or function of the file
 COM = command, EXE = executable
 Anything that is not a program is a data file used
by a program
 Extension of a data file indicates which program
uses that data file
 .DOC = MSWord, .PPT = PowerPoint
 Graphic file extensions represent the graphic
standard used to create the image
 .JPEG =Joint Photographic Experts Group
3/9/2020
10
File Formats
 All files stored on hard drive in binary format
 Every program is unique in the way it reads and
writes this binary data
 Each unique way of binary organization is known
as a file format
 One program cannot read another programs files
unless it can convert the other programs format
3/9/2020
11
Drives and Folders
 To execute commands from the command
line, must focus the prompt at the specific
drive and folder that contains the files or
program with which you want to work
 At boot, Win assigns letters to drives and
drive partitions
3/9/2020
12
Hierarchical Directory Tree
 All files are put in groups called folders
 Any file not in a folder within the tree is
said to be in the root directory
 A folder inside another folder is called a
subfolder
 Any folder can have multiple subfolders
3/9/2020
13
Hierarchical Directory Tree
 Hard drive is represented by C:
 Root directory is indicated by , C:
 Subdirectories/Subfolders are indicated
by adding  and the directory name
 Exact location of a file is known as its
PATH
3/9/2020
14
Fundamental Commands
 ALL commands use similar structure and
execute in the same way
 Name of command , target of command
followed by any switches (extra numbers
or letters at the end)
 Typing the command followed /? Displays
help menu describing syntax and
possible switches
3/9/2020
15
CD Command (Directories)
 Change focus of command prompt to a
different directory
 CD followed by directory name
 If directory does not exist, error message
– Invalid Directory
– The system cannot find the path specified
3/9/2020
16
Create Folder
 To make a directory or Create new folder
 To make a directory called folder name
under root directory: C:>MD folder name
, press ENTER
 If command is successfully executed, the
command prompt will be displayed
 Use DIR to verify that directory was
created
3/9/2020
Create Files
 Create file using this command just type
copy con and file name. extension for eg
copy con kamran.txt
 type text you want to insert in a file for eg
 Welcome to gdec
 after you write your desire text then press
Ctrl +Z
17 3/9/2020
18
Delete Files
 Use DEL command
 Careful! No recycle bin.
 Erased file can only be recovered using
Norton Unerase
 DEL kamran.txt
3/9/2020
Rename File
 ren command is used to rename of file
 For eg type ren filename . extension and
then type name that you want. Extension
 ren kamran.txt sohaib.txt
19 3/9/2020
Delete Folder/ Directories
 rmdir command use to delete Folder/
 If you want to remove all file in folder then
you type rmdir folder name s
 S stand for sub directories
 rmdir lahore
 If all file remove from folder then type
 rmdir lahores
20 3/9/2020
Hide Folder / File
 attrib +h then Folder / File name then press
enter
 For eg attrib +h gdec then press enter
 Then gdec folder are hidden no body can
view this folder
 attrib +h gdec
21 3/9/2020
UnHide Folder / File
 attrib -h then Folder / File name then press
enter
 For eg attrib -h gdec then press enter
 Then gdec folder unhide on your screen
every body can view this folder
22 3/9/2020
Clear Screen
 cls is used to clear screen
23 3/9/2020
Check Window Expire Date
 slmgr.vbs –xpr is used to check window
expire date
 Then pop up message appear then all
details are given about window expire
24 3/9/2020
Outside from Folder/ Directories
 You can change Directories path for eg if you
are working in folder you want to comeback
in desktop then type
 cd..
25 3/9/2020
Change Color of Cmd Text
 You can change the text color of cmd just
type color L and then press enter
 Then list of all color numbering is display you
just pick the desire color number
 Color 2 then all text in green color
26 3/9/2020
3/9/202027

More Related Content

What's hot

Ms dos commands for Multimedia Students and Facultyes
Ms dos commands  for Multimedia Students and FacultyesMs dos commands  for Multimedia Students and Facultyes
Ms dos commands for Multimedia Students and FacultyesSEO SKills
 
Unit II - MS DOS Commands
Unit II - MS DOS CommandsUnit II - MS DOS Commands
Unit II - MS DOS CommandsHepsijeba
 
Basic dos-commands
Basic dos-commandsBasic dos-commands
Basic dos-commandsparag dhok
 
Disk structure & File Handling
Disk structure & File HandlingDisk structure & File Handling
Disk structure & File HandlingMomina Idrees
 
Dos commad. by ammar nawab ppt
Dos commad. by ammar nawab pptDos commad. by ammar nawab ppt
Dos commad. by ammar nawab pptAmmar_n
 
File Management
File ManagementFile Management
File Managementspickul
 
Fat 32 file system
Fat 32 file systemFat 32 file system
Fat 32 file systemkeshav546
 
Internal commands of dos
Internal commands of dosInternal commands of dos
Internal commands of dosNargiskhan786
 
File System and File allocation tables
File System and File allocation tablesFile System and File allocation tables
File System and File allocation tablesshashikant pabari
 
How to convert file system without data loss
How to convert file system without data lossHow to convert file system without data loss
How to convert file system without data lossLisa Liao
 
File Management in Operating Systems
File Management in Operating SystemsFile Management in Operating Systems
File Management in Operating Systemsvampugani
 
File system of windows xp
File system of windows xpFile system of windows xp
File system of windows xpashubhardwaj03
 

What's hot (19)

Ms DOS
Ms DOSMs DOS
Ms DOS
 
Ms dos commands for Multimedia Students and Facultyes
Ms dos commands  for Multimedia Students and FacultyesMs dos commands  for Multimedia Students and Facultyes
Ms dos commands for Multimedia Students and Facultyes
 
Unit II - MS DOS Commands
Unit II - MS DOS CommandsUnit II - MS DOS Commands
Unit II - MS DOS Commands
 
MS-DOS
MS-DOSMS-DOS
MS-DOS
 
Basic dos-commands
Basic dos-commandsBasic dos-commands
Basic dos-commands
 
Disk structure & File Handling
Disk structure & File HandlingDisk structure & File Handling
Disk structure & File Handling
 
DOS commands
DOS commandsDOS commands
DOS commands
 
MS Dos command
MS Dos commandMS Dos command
MS Dos command
 
Introduction to ms dos
Introduction to ms dosIntroduction to ms dos
Introduction to ms dos
 
Dos commad. by ammar nawab ppt
Dos commad. by ammar nawab pptDos commad. by ammar nawab ppt
Dos commad. by ammar nawab ppt
 
File Management
File ManagementFile Management
File Management
 
Msdos crash course
Msdos crash courseMsdos crash course
Msdos crash course
 
Fat 32 file system
Fat 32 file systemFat 32 file system
Fat 32 file system
 
Internal commands of dos
Internal commands of dosInternal commands of dos
Internal commands of dos
 
File System and File allocation tables
File System and File allocation tablesFile System and File allocation tables
File System and File allocation tables
 
How to convert file system without data loss
How to convert file system without data lossHow to convert file system without data loss
How to convert file system without data loss
 
File Management in Operating Systems
File Management in Operating SystemsFile Management in Operating Systems
File Management in Operating Systems
 
File system of windows xp
File system of windows xpFile system of windows xp
File system of windows xp
 
DBMS
DBMSDBMS
DBMS
 

Similar to Command line interface

Similar to Command line interface (20)

Dos 16
Dos 16Dos 16
Dos 16
 
Lec05
Lec05Lec05
Lec05
 
CMD Command prompts
CMD Command promptsCMD Command prompts
CMD Command prompts
 
disk-operating-system.ppt
disk-operating-system.pptdisk-operating-system.ppt
disk-operating-system.ppt
 
Hos
HosHos
Hos
 
Hos
HosHos
Hos
 
lab2.pptx.pdf
lab2.pptx.pdflab2.pptx.pdf
lab2.pptx.pdf
 
33269198 all-commands-in-ms-dos(1)
33269198 all-commands-in-ms-dos(1)33269198 all-commands-in-ms-dos(1)
33269198 all-commands-in-ms-dos(1)
 
33269198 all-commands-in-ms-dos
33269198 all-commands-in-ms-dos33269198 all-commands-in-ms-dos
33269198 all-commands-in-ms-dos
 
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
 
Dos commands new
Dos commands new Dos commands new
Dos commands new
 
ch6.ppsx
ch6.ppsxch6.ppsx
ch6.ppsx
 
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
 
L1 msdos primer
L1 msdos primerL1 msdos primer
L1 msdos primer
 
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
 
Comp practical
Comp practicalComp practical
Comp practical
 
LEARNING MS DOS BASIC
LEARNING MS DOS BASICLEARNING MS DOS BASIC
LEARNING MS DOS BASIC
 
Dos%20commands(1)
Dos%20commands(1)Dos%20commands(1)
Dos%20commands(1)
 
Command
CommandCommand
Command
 

More from MuhammadRobeel3

Ch # 10 computer security risks and safe guards
Ch # 10 computer security risks and safe guardsCh # 10 computer security risks and safe guards
Ch # 10 computer security risks and safe guardsMuhammadRobeel3
 
Ch # 09 database management system
Ch # 09 database management systemCh # 09 database management system
Ch # 09 database management systemMuhammadRobeel3
 
Ch # 08 communication devices, network typologies , network protocol
Ch # 08 communication devices, network typologies , network protocolCh # 08 communication devices, network typologies , network protocol
Ch # 08 communication devices, network typologies , network protocolMuhammadRobeel3
 
Ch # 07 operating system
Ch # 07 operating systemCh # 07 operating system
Ch # 07 operating systemMuhammadRobeel3
 
Ch # 05 input and output devices in computer
Ch # 05 input and output devices in computerCh # 05 input and output devices in computer
Ch # 05 input and output devices in computerMuhammadRobeel3
 
Ch # 04 computer hardware
Ch # 04 computer hardware Ch # 04 computer hardware
Ch # 04 computer hardware MuhammadRobeel3
 
Introduction to computer
Introduction to computerIntroduction to computer
Introduction to computerMuhammadRobeel3
 
Introduction to computer
Introduction to computerIntroduction to computer
Introduction to computerMuhammadRobeel3
 

More from MuhammadRobeel3 (17)

Programming languages
Programming languagesProgramming languages
Programming languages
 
Osi model
Osi modelOsi model
Osi model
 
Memory management
Memory managementMemory management
Memory management
 
Ch # 11
Ch # 11Ch # 11
Ch # 11
 
Ch # 10 computer security risks and safe guards
Ch # 10 computer security risks and safe guardsCh # 10 computer security risks and safe guards
Ch # 10 computer security risks and safe guards
 
Ch # 09 database management system
Ch # 09 database management systemCh # 09 database management system
Ch # 09 database management system
 
Ch # 08 communication devices, network typologies , network protocol
Ch # 08 communication devices, network typologies , network protocolCh # 08 communication devices, network typologies , network protocol
Ch # 08 communication devices, network typologies , network protocol
 
Ch # 07 operating system
Ch # 07 operating systemCh # 07 operating system
Ch # 07 operating system
 
Ch # 06 storage devices
Ch # 06 storage devicesCh # 06 storage devices
Ch # 06 storage devices
 
Ch # 05 input and output devices in computer
Ch # 05 input and output devices in computerCh # 05 input and output devices in computer
Ch # 05 input and output devices in computer
 
Ch # 04 computer hardware
Ch # 04 computer hardware Ch # 04 computer hardware
Ch # 04 computer hardware
 
Ch # 03 software
Ch # 03  softwareCh # 03  software
Ch # 03 software
 
Ch # 02 internet
Ch # 02 internetCh # 02 internet
Ch # 02 internet
 
Introduction to computer
Introduction to computerIntroduction to computer
Introduction to computer
 
pdlc
pdlc pdlc
pdlc
 
Introduction to computer
Introduction to computerIntroduction to computer
Introduction to computer
 
SDLC
SDLCSDLC
SDLC
 

Recently uploaded

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
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
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
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
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
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
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
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 

Recently uploaded (20)

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
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
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"
 
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"
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
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
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
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
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
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
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
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
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 

Command line interface

  • 2. 2 Lecture Objectives  Explain the operation of the command line interface  Execute fundamental commands from the command line interface  Manipulate files and folders from the command line
  • 3. 3 How does the Command Line Work?  Similar to Instant Message conversation with computer  The prompt indicates that the computer is ready to receive a command  Command is typed and ENTER is pressed  PC executes command  Prompt is displayed, indicating that the computer is waiting for the next command 3/9/2020
  • 4. 4 Accessing the Command Line  Run dialog box  Start menu under Programs | Accessories – Win 9x/Me link is named MS-DOS prompt – Win NT, 2000, XP link is called Command Prompt  To close command line interface – Type Exit at command line and press enter – Close the window 3/9/2020
  • 5. 5 Command Prompt  VERY IMPORTANT: The command prompt is always focused on a specific folder. Any commands executed are performed on the files in the folder on which the prompt is focused. Examples: C:> root directory of C: drive C:DiplomaAPLUS> You must focus the prompt on the drive and folder where you want to work 3/9/2020
  • 6. 6 Filenames and File Formats  In Windows, each program and piece of data is stored as an individual file  Each file has a name, stored with the file on the drive  Names have 2 parts: filename and extension 3/9/2020
  • 7. 7 Eight-dot-Three naming system  File name cannot be more that 8 chrs  Extension can be up to 3 chrs, OPTIONAL  Following chrs cannot be used in filename or extension: – / [ ] | = + ; , * ? And division symbol 3/9/2020
  • 8. 8 Windows naming rules  All versions starting with Win 9x are not limited be 8.3  Filenames up to 255 chrs  Win 9x has backward compatibility with DOS by creating 2 names for every file, 8.3 name and a long file name if necessary 3/9/2020
  • 9. 9 File extensions  Describes the type or function of the file  COM = command, EXE = executable  Anything that is not a program is a data file used by a program  Extension of a data file indicates which program uses that data file  .DOC = MSWord, .PPT = PowerPoint  Graphic file extensions represent the graphic standard used to create the image  .JPEG =Joint Photographic Experts Group 3/9/2020
  • 10. 10 File Formats  All files stored on hard drive in binary format  Every program is unique in the way it reads and writes this binary data  Each unique way of binary organization is known as a file format  One program cannot read another programs files unless it can convert the other programs format 3/9/2020
  • 11. 11 Drives and Folders  To execute commands from the command line, must focus the prompt at the specific drive and folder that contains the files or program with which you want to work  At boot, Win assigns letters to drives and drive partitions 3/9/2020
  • 12. 12 Hierarchical Directory Tree  All files are put in groups called folders  Any file not in a folder within the tree is said to be in the root directory  A folder inside another folder is called a subfolder  Any folder can have multiple subfolders 3/9/2020
  • 13. 13 Hierarchical Directory Tree  Hard drive is represented by C:  Root directory is indicated by , C:  Subdirectories/Subfolders are indicated by adding and the directory name  Exact location of a file is known as its PATH 3/9/2020
  • 14. 14 Fundamental Commands  ALL commands use similar structure and execute in the same way  Name of command , target of command followed by any switches (extra numbers or letters at the end)  Typing the command followed /? Displays help menu describing syntax and possible switches 3/9/2020
  • 15. 15 CD Command (Directories)  Change focus of command prompt to a different directory  CD followed by directory name  If directory does not exist, error message – Invalid Directory – The system cannot find the path specified 3/9/2020
  • 16. 16 Create Folder  To make a directory or Create new folder  To make a directory called folder name under root directory: C:>MD folder name , press ENTER  If command is successfully executed, the command prompt will be displayed  Use DIR to verify that directory was created 3/9/2020
  • 17. Create Files  Create file using this command just type copy con and file name. extension for eg copy con kamran.txt  type text you want to insert in a file for eg  Welcome to gdec  after you write your desire text then press Ctrl +Z 17 3/9/2020
  • 18. 18 Delete Files  Use DEL command  Careful! No recycle bin.  Erased file can only be recovered using Norton Unerase  DEL kamran.txt 3/9/2020
  • 19. Rename File  ren command is used to rename of file  For eg type ren filename . extension and then type name that you want. Extension  ren kamran.txt sohaib.txt 19 3/9/2020
  • 20. Delete Folder/ Directories  rmdir command use to delete Folder/  If you want to remove all file in folder then you type rmdir folder name s  S stand for sub directories  rmdir lahore  If all file remove from folder then type  rmdir lahores 20 3/9/2020
  • 21. Hide Folder / File  attrib +h then Folder / File name then press enter  For eg attrib +h gdec then press enter  Then gdec folder are hidden no body can view this folder  attrib +h gdec 21 3/9/2020
  • 22. UnHide Folder / File  attrib -h then Folder / File name then press enter  For eg attrib -h gdec then press enter  Then gdec folder unhide on your screen every body can view this folder 22 3/9/2020
  • 23. Clear Screen  cls is used to clear screen 23 3/9/2020
  • 24. Check Window Expire Date  slmgr.vbs –xpr is used to check window expire date  Then pop up message appear then all details are given about window expire 24 3/9/2020
  • 25. Outside from Folder/ Directories  You can change Directories path for eg if you are working in folder you want to comeback in desktop then type  cd.. 25 3/9/2020
  • 26. Change Color of Cmd Text  You can change the text color of cmd just type color L and then press enter  Then list of all color numbering is display you just pick the desire color number  Color 2 then all text in green color 26 3/9/2020