presentation 10 – using the command line
DESCRIPTION
Presentation 10 – Using the Command Line. Objectives. At the end of this presentation, you will be able to:. Explain how to get to the command line in an operational PC and in a faulty PC. Explain the difference between an internal and an external command. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/1.jpg)
Copyright © 2007 Heathkit Company, Inc. All Rights Reserved
PC Fundamentals
Presentation 10 Presentation 10 –– Using the Command Using the Command LineLine
![Page 2: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/2.jpg)
2
ObjectivesObjectives
At the end of this presentation, you will be able to:
![Page 3: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/3.jpg)
3
Explain how to get to the command line in an operational PC and in a faulty PC.
Explain the difference between an internal and an external command.
Properly structure a command, given the available parameters of that command.
Explain the difference between a slash and a backslash.
Demonstrate the proper way to use wildcards in a command.
![Page 4: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/4.jpg)
4
Definition: DOSDefinition: DOS
DOS is Disk Operating System
DOS was the original operating system for the personal computer
“DOS” is now used to refer to a text-based interface
![Page 5: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/5.jpg)
5
What’s it called?What’s it called?MS-DOS Prompt
DOS Prompt
Command Line
Command Prompt
Command-Line Interface
“DOS”
![Page 6: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/6.jpg)
6
C:\>_______
![Page 7: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/7.jpg)
7
Graphical Interface Commands
MouseClicksMouseClicks
Translate mouse
clicks into commands
Command Line
InputCommand Line
Input
![Page 8: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/8.jpg)
8
Why use the Command Line?Why use the Command Line?
In a faulty PC, it may be the only way to get the computer running again.
Some operations are faster and easier from the command line.
Some commands have no graphical equivalent
Certification tests have questions about using the command line.
![Page 9: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/9.jpg)
9
Unique Command Line CommandsUnique Command Line Commands
at
convert
cacls
![Page 10: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/10.jpg)
10
Getting to the Command Line in an Getting to the Command Line in an operational PC.operational PC.
![Page 11: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/11.jpg)
11
The Command Prompt WindowThe Command Prompt Window
![Page 12: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/12.jpg)
12
Getting to the Command Line in a Getting to the Command Line in a faulty PC.faulty PC.
Boot the PC Boot the PC from a CD or from a CD or floppy that floppy that contains a contains a Command Command Interpreter.Interpreter.
![Page 13: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/13.jpg)
Internal vs. External CommandsInternal vs. External Commands
![Page 14: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/14.jpg)
14
Internal CommandsInternal CommandsBuilt into the Command Interpreter
(COMMAND.COM or CMD.EXE).
Already in memory if DOS is loaded.
Available anytime the computer is displaying the command line prompt.
Generally, the more frequently used commands.
Examples include: DIR, COPY, PATH, CD, MD, DEL, TIME, DATE.
![Page 15: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/15.jpg)
15
External CommandsExternal Commands
Not a part of Command Interpreter.
Located in another directory.
Must be loaded into memory as needed by DOS.
Examples include: FORMAT and DISKCOPY.
![Page 16: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/16.jpg)
16
SyntaxSyntax
A specific set of rules that you must follow when writing commands.
The order in which you arrange the elements of the command.
The rules of grammar for commands.
![Page 17: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/17.jpg)
17
Commands have three Parts:Commands have three Parts:
KeywordKeyword ParameterParameter SwitchSwitch
Optional
![Page 18: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/18.jpg)
18
Keyword - What action to perform.
Parameter - What is acted upon.
Switches - How to perform the action.
![Page 19: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/19.jpg)
19
KeywordKeyword
A unique word or set of characters that identifies the action to be performed.
Some are quite descriptive: FORMAT, COPY, MOVE
Others are abbreviated: DEL and DIR
A few are little more than memory aids: GRAFTABL.
![Page 20: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/20.jpg)
20
ParameterParameter
Additional directions for the command.
It may specify a directory or file on which to perform the action.
It may specify a hardware device.
It may specify a system setting.
![Page 21: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/21.jpg)
21
SwitchesSwitches
A special type of parameter that enables or disables optional functions of the command.
The /P switch with the DIR command displays the directory one screen at a time.
The /W switch with the DIR command displays the directory in the wide format (five columns wide).
![Page 22: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/22.jpg)
22
Two Common Forms of Commands:Two Common Forms of Commands:
KeywordKeyword Drive/FilesDrive/Files SwitchesSwitches
Or
KeywordKeyword Source FilesSource Files SwitchesSwitchesTarget FilesTarget Files
![Page 23: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/23.jpg)
23
DEL SALES07.DOCDEL SALES07.DOC
Keyword File
![Page 24: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/24.jpg)
24
DEL A:\SALES07.DOCDEL A:\SALES07.DOC
Keyword File
![Page 25: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/25.jpg)
25
COPY FILE13.TXT A:COPY FILE13.TXT A:
Keyword
SourceTarget
orDestination
![Page 26: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/26.jpg)
26
COPY FILE13.TXT A:COPY FILE13.TXT A:
Space Space
![Page 27: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/27.jpg)
27
COPY FILE13.TXT A: /VCOPY FILE13.TXT A: /V
Keyword
SourceTarget
orDestination
Switch
![Page 28: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/28.jpg)
28
Backslash Vs. Forward SlashBackslash Vs. Forward Slash
\ Backslashes are used as separators when specifying directory or file information.
/ Forward slashes are used to notify the command line that the next character is a
switch.
![Page 29: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/29.jpg)
You Inadvertently Type:You Inadvertently Type:copyfile13copyfile13
Command Line Replies:Command Line Replies:‘copyfile13’ is not recognized as an internal ‘copyfile13’ is not recognized as an internal or external command, operable program or or external command, operable program or
batch file.batch file.
![Page 30: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/30.jpg)
30
Getting Help.Getting Help.
Type HELP followed by the command you want to know about.
Type the command and then follow it with
the switch /?.
![Page 31: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/31.jpg)
31
Wild CardsWild Cards
AA
A?
??
***
*
A
A
![Page 32: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/32.jpg)
32
Wild card for a single character.Wild card for a single character.
?
![Page 33: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/33.jpg)
33
The file name: FILE? Can The file name: FILE? Can represent:represent:
FILE1FILE2FILE3FILE4FILE5...
FILEAFILEBFILECFILEDFILEE...
![Page 34: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/34.jpg)
34
JAN07SLS.XLSFEB07SLS.XLSMAR07SLS.XLSAPR07SLS.XLSMAY07SLS.XLSJUN07SLS.XLSJUL07SLS.XLSAUG07SLS.XLSSEP07SLS.XLSOCT07SLS.XLSNOV07SLS.XLSDEC07SLS.XLS
JAN06SLS.XLSFEB06SLS.XLSMAR06SLS.XLSAPR06SLS.XLSMAY06SLS.XLSJUN06SLS.XLSJUL06SLS.XLSAUG06SLS.XLSSEP06SLS.XLSOCT06SLS.XLSNOV06SLS.XLSDEC06SLS.XLS
![Page 35: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/35.jpg)
35
JAN0?SLS.XLS
JAN00SLS.XLSJAN01SLS.XLSJAN02SLS.XLSJAN03SLS.XLSJAN04SLS.XLSJAN05SLS.XLS
JAN06SLS.XLSJAN07SLS.XLS
![Page 36: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/36.jpg)
36
???07SLS.XLS
JAN07SLS.XLSFEB07SLS.XLSMAR07SLS.XLSAPR07SLS.XLSMAY07SLS.XLSJUN07SLS.XLS
JUL07SLS.XLSAUG07SLS.XLSSEP07SLS.XLSOCT07SLS.XLSNOV07SLS.XLSDEC07SLS.XLS
![Page 37: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/37.jpg)
37
Wild card for one to eight Wild card for one to eight characters.characters.
![Page 38: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/38.jpg)
38
![Page 39: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/39.jpg)
39
????????.???
88 33
![Page 40: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/40.jpg)
40
JAN0*SLS.XLS
JAN00SLS.XLSJAN01SLS.XLSJAN02SLS.XLSJAN03SLS.XLSJAN04SLS.XLSJAN05SLS.XLS
JAN06SLS.XLSJAN07SLS.XLS
![Page 41: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/41.jpg)
41
JAN07SLS.XLSFEB07SLS.XLSMAR07SLS.XLSAPR07SLS.XLSMAY07SLS.XLSJUN07SLS.XLS
JUL07SLS.XLSAUG07SLS.XLSSEP07SLS.XLSOCT07SLS.XLSNOV07SLS.XLSDEC07SLS.XLS
07SLS.XLS*
![Page 42: Presentation 10 – Using the Command Line](https://reader035.vdocument.in/reader035/viewer/2022062517/56813510550346895d9c65ce/html5/thumbnails/42.jpg)
Copyright © 2007 Heathkit Company, Inc. All Rights Reserved
PC Fundamentals
EndEnd