DOS, CMD, and BAT Flashcards

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

A

True

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

A

If /i

25
Q

With the __ switch you can instruct ___ to create a new variable based on the _____ ______

A

/p, set, users input

26
Q

The GOTO command

A

tells command prompt to jump to a new location in the batch file

27
Q

Types of commands in DOS
Internal vs External

A

Internal:
Command such as dir, copy, delete

External:
Smaller executable programs that the CPU would process then execute, like paint

28
Q

Start Command Prompt

A

Start button, CMD in search box, right click CMD, run as admin

29
Q

CD.. or Cd ..

A

takes you one directory back

30
Q

To change to another drive just

A

type the drive letter (ex. E:)

31
Q

Make a new directory using the ______ or __ command

A

MKDir or MD

32
Q

To remove a directory, it has to be

A

Empty

33
Q

If you’re trying to remove a directory you should not be

A

inside of it

34
Q

dir | more

A

Pauses the screen page by page, use the spacebar to continue

35
Q

What is the command to copy \testfile\testfile1.txt to the \testfile2\ folder, both folders are in the C: drive
C:>______________ ________

A

copy \testfile\testfile1.txt \testfile2

36
Q

Use the __ switch when deleting ________ files

A

-h, hidden

37
Q

to run a program from CMD,

A

Navigate to the directory that contains the executable, then type in the program name

Ex: C:\testfile\testfile.exe

38
Q

ECHO is the ______ statement for BAT files

A

print

39
Q

Anything following the word ECHO in a bat file will be

A

displayed in CMD as text

40
Q

“Proper” backups involve making _________ __________ on a schedule, are ____________ and are ___ ___ in one place

A

multiple backups, automatic, not all