Windows CLI mod 5 Flashcards

1
Q

Is a program that handles the user interface with the OS and is also a command language interpreter capable of running batch files or scripts.

A

Shell

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

Is the grammatical rules and patterns that govern the ordered use of appropriate words and symbols necessary for commands to execute.

A

Syntax

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

Are parameters to specify command features and options.

A

Arguments

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

Modify the operation of a command.

A

Options

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

display the most commonly used built-in commands along with a brief functionality description.

A

help

C:>help
or
C:>\/?

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

indicate a separation between the command and its associated arguments.

spaces ( ), forward slash ( / ),the hyphen ( -), or the semi-colon ( ; ).

A

Delimiters

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

are used to identify optional arguments.

A

Brackets [ ]

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

character may be used in two ways:to pass the output of the first command to the second command as input,and to represent “or” for example, [+R | -R] indicates +R “or” -R may be used.

A

The pipe ( | )

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

may also be used to denote anything and everything within a specific argument.

A

Wildcard characters (*)

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

indicates it is used to display output one screen at a time.

A

more

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

present working directory.

A

working directory

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

move from one location to another or identify a particular location of a file or directory.

A

paths

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

starts at the volume:root and specifies each directory that must be opened to get to the desired file or directory.

A

absolute path

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

gives the location of the target file or directory from (relative to)the present working directory. Uses (..)

A

relative path

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

Displays the name of or changes the current directory.

A

cd

Options:
/d Switch current drive
.. Changes to the parent directory
\ Changes to the root directory

Syntax:
cd /d
cd \

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

variables whose values are generally set by the OS and affect how programs act on a system.

A

Environmental variables

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

Displays path statement

A

C:>path

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

Adds C:\tools directory to path statement

A

C:>path=%path%;C:\tools

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

Specifies a new command prompt.

Options:
Specifies text for command prompt
$P Specifies working directory for command prompt
$G Specifies ‘>’ for command prompt

A

prompt

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

Displays a list of files and subdirectories in a directory.

Options: 
/T:    Controls which time field to display
       C     Created
       A     Last Access
      W     Last Written
A

dir

Syntax:
dir[drive:][path][filename] [/T[[:]timefield]]

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

Displays a list of files and subdirectories in a directory.

Option:
/A:     Displays files with a specified attribute
       D  Directory
       A  Archive
       S  System file
       H  Hidden file
       R  Read only
A

dir

Syntax:
dir[drive:][path][filename] [/A[[:]attribute]]

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

Displays a list of files and subdirectories in a directory.

Option:
/S Displays files in directories and all subdirectories

A

dir

Syntax:
[/S] [drive:][path][filename]

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

Displays or changes file attributes.

Options:
\+ or- R   Turns on/off read-only attribute
\+ or– H  Turns on/off hidden attribute
\+ or– S  Turns on/off system attribute
\+ or– A  Turns on/off archive attribute
A

attrib

Syntax:
attrib[+/-options]

24
Q

Displays or sets the system date.

Options:
/t Does not prompt for date change

A

date

25
Q

Displays or sets the system time.

Options:
/t Does not prompt for time change

A

time

26
Q

Displays OS version.

A

ver

27
Q

Sets the title for the CLI window.

A

title

Syntax:
title

28
Q

Quits the CLI window.

A

exit

29
Q

Creates a directory.

A

mkdir

Syntax:
mkdir\

mkdir

mkdir

30
Q

Removes a directory.

Options:
/s Removes directory and all contents

A

rmdir

Syntax:
rmdir

rmdir/s

31
Q

“Copy console” is used to create a simple text file,but is not used to edit an existing file.

A

copy con

Syntax:
copy con

32
Q

Create and edit text files.

A

notepad

33
Q

Copies one or more files to another location. Can also name the copied file.

A

copy

Syntax:
copy

copy

34
Q

Moves and renames files and directories.

A

move

Syntax:
move

move

35
Q

Renames a file or directory.

A

ren

Syntax:
ren

36
Q

Displays contents of a text file or files.

A

type

37
Q

Searches for a text string in a text file or files.

Options:
/n Displays line numbers of lines containing specified text string

/I Ignores case when searching for specified string

A

find

Syntax:
find /n /I “”

38
Q

Deletes one or more files.

A

del

39
Q

Copies directory trees and files.

Options:
/e Copies directories and subdirectories, including empty ones

A

xcopy

Syntax:
xcopy [options]

40
Q

Recalls Windows commands.

Options:
/history Displays all commands entered.

A

doskey

41
Q

Redirects standard command output to a file instead of displaying results on the screen. If the file does not exist, it is created. If the file does exist, it is overwritten.

A

>

Syntax:
C:>>

42
Q

Appends standard output to the end of another file. If the file does not exist, it is created.

A

> >

Syntax:
more &raquo_space;

43
Q

Graphically displays the folder structure of a drive or path.

Options:
/f Displays the names of files in each folder

/a Uses ASCII instead of extended characters

A

tree

44
Q

Displays or modifies access control lists (ACLs) for directories and files.

Options:
/e Edits ACL instead of replacing it
/g Grants specified user access (without /e overwrites ACL)
/p Replaces specified user access

Access permissions available: 
N –None (user permissions only)
R –Read 
W –Write
C –Change (read and write)
F –Full
A

cacls

Syntax:
cacls [options]

45
Q

Manage local policy settings, account and password policies.

Options:
/minpwlen: Set minimum length of password

/maxpwage: Sets maximum days password is valid

A

net accounts

46
Q

Displays, modifies, or creates user accounts.

Options:
/add Creates a user account

/delete Deletes a user account

A

net user

Syntax:
net user /add

net user /delete

47
Q

Displays, modifies, or creates group accounts.

Options:
/add Creates a group account or adds a user account as a member

/delete Deletes a group account or removes a user account as a member

A

net localgroup

48
Q

Identifies a user account to execute a program.

Options:
/user: Identifies user account

A

runas

Syntax:

runas /user:

49
Q

Displays a list of processes currently executing.

A

tasklist

50
Q

Killsone or more processes.
Options:

/pid Specifies PID of process to be killed

/IM Specifies process by image name

/f Forcefully terminate the process

A

taskkill

Syntax:
taskkill /pid
taskkill /IM

51
Q

Commonly used to backup an entire system by selecting an entire volume. All files selected are backed up. Archive attributes are cleared or turned off for files backed up during a full backup.
Pros: Backs up all files and directories.
Cons: Takes a long time since it backs up everything

A

Full backup

52
Q

Backs up selected files with the archive attribute. Archive attributes are cleared or turned off for files backed up during an incremental backup.
Pros: Backup times are quicker.Only backs up files and directories that are new or changed since the last full or incremental backup.
Cons: System Restore is more difficult and time consuming as it requires every incremental backup tape or media set.

A

incremental backup

53
Q

Backs up selected files with the archive attribute. Archive attributes remain on for files backed up during a differential backup.
Pros: System Restore requires only the most recent full and differential tapes or media sets.
Cons: Backup times become progressively longer over time.

A

differential backup

54
Q

Contains audit events that may affect the security of the system, user activities such as logon/logoff, and resource access attempts.

A

Security Log

55
Q

Contains events logged by non-OS and third-party applications.

A

Application Log

56
Q

Contains actions that occur during Windows setup

A

Setup Log

57
Q

Contains events logged by OS components.

A

System Log