DOS, CMD, and BAT Flashcards

(40 cards)

1
Q

T/F - When you are writing a Windows batch file, you must ensure that the commands are written in lowercase because they are case-sensitive

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

DOS was considered a _______ OS

Single Task
16 bit
Command line
GUI Interface

A

Single task, 16 bit, command line

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In DOS, what is the command to see how many directories and files are in a drive?

A

D:>\dir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which commands help you find more information about a specific command such as copy?

A

Help copy
Copy /?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

T/F - In windows \CD takes you to the root (top) of the directory

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What represents root in windows? What represents root in Linux?

A

C:\ and /

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

When using C:>dir | more what key jumps to the next page?

A

Space

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The /I command in a batch file tells the interpreter to only use the ____ letter of the user input

A

First

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

T/F - “Echo off” command means the command interpreter will not display the command that you entered to run the batch file

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When working in cmd, which command clears the screen?

A

cls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In DOS, “CD..” with 2 dots takes you

A

One directory back

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The command to remove arch.txt is

A

Del arch.txt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

in W10 the prompt is set to the C:> drive and you need access to the D: drive, what command do you use to switch?

A

D:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

To view the contents of a folder in command prompt, you type

A

DIR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

In a batch file “Echo Off” is usually placed at the

A

beginning

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

In batch files what two symbols follow a command in order to list the possible options the programmer has with said command?

A

/?

ie. command /?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What command is used to delete directories?

A

Remove Directory (rd)

18
Q

Before deleting a directory at the top of a tree you must first delete its

A

sub-directories

19
Q

T/F - The pause command in a bat file allows users a chance to review the material on the screen before continuing

20
Q

If your batch file is disappearing too quickly, you must add

A

a pause command

21
Q

SET ___ _ ______

A

SET sets a variable

22
Q

If you get the message “access is denied” when running a batch file, it’s likely because you

A

Forgot the run the batch file as the administrator

23
Q

This command ties together batch processing as it responds to the variable created by the set command

A

The If command

24
Q

Extracts the first letter typed

25
With the __ switch you can instruct ___ to create a new variable based on the _____ ______
/p, set, users input
26
The GOTO command
tells command prompt to jump to a new location in the batch file
27
Types of commands in DOS Internal vs External
Internal: Command such as dir, copy, delete External: Smaller executable programs that the CPU would process then execute, like paint
28
Start Command Prompt
Start button, CMD in search box, right click CMD, run as admin
29
CD.. or Cd ..
takes you one directory back
30
To change to another drive just
type the drive letter (ex. E:)
31
Make a new directory using the ______ or __ command
MKDir or MD
32
To remove a directory, it has to be
Empty
33
If you're trying to remove a directory you should not be
inside of it
34
dir | more
Pauses the screen page by page, use the spacebar to continue
35
What is the command to copy \testfile\testfile1.txt to the \testfile2\ folder, both folders are in the C: drive C:\>______________ ________
copy \testfile\testfile1.txt \testfile2
36
Use the __ switch when deleting ________ files
-h, hidden
37
to run a program from CMD,
Navigate to the directory that contains the executable, then type in the program name Ex: C:\testfile\testfile.exe
38
ECHO is the ______ statement for BAT files
print
39
Anything following the word ECHO in a bat file will be
displayed in CMD as text
40
"Proper" backups involve making _________ __________ on a schedule, are ____________ and are ___ ___ in one place
multiple backups, automatic, not all