Windows CLI mod 5 Flashcards

(57 cards)

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

25
Displays or sets the system time. Options: /t Does not prompt for time change
time
26
Displays OS version.
ver
27
Sets the title for the CLI window.
title Syntax: title
28
Quits the CLI window.
exit
29
Creates a directory.
mkdir Syntax: mkdir\\ mkdir mkdir
30
Removes a directory. Options: /s Removes directory and all contents
rmdir Syntax: rmdir rmdir/s
31
“Copy console” is used to create a simple text file,but is not used to edit an existing file.
copy con Syntax: copy con
32
Create and edit text files.
notepad
33
Copies one or more files to another location. Can also name the copied file.
copy Syntax: copy copy
34
Moves and renames files and directories.
move Syntax: move move
35
Renames a file or directory.
ren Syntax: ren
36
Displays contents of a text file or files.
type
37
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
find Syntax: find /n /I “”
38
Deletes one or more files.
del
39
Copies directory trees and files. Options: /e Copies directories and subdirectories, including empty ones
xcopy Syntax: xcopy [options]
40
Recalls Windows commands. Options: /history Displays all commands entered.
doskey
41
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.
> Syntax: C:\>>
42
Appends standard output to the end of another file. If the file does not exist, it is created.
>> Syntax: more >>
43
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
tree
44
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 ```
cacls Syntax: cacls [options]
45
Manage local policy settings, account and password policies. Options: /minpwlen: Set minimum length of password /maxpwage: Sets maximum days password is valid
net accounts
46
Displays, modifies, or creates user accounts. Options: /add Creates a user account /delete Deletes a user account
net user Syntax: net user /add net user /delete
47
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
net localgroup
48
Identifies a user account to execute a program. Options: /user: Identifies user account
runas Syntax: runas /user:
49
Displays a list of processes currently executing.
tasklist
50
Killsone or more processes. Options: /pid Specifies PID of process to be killed /IM Specifies process by image name /f Forcefully terminate the process
taskkill Syntax: taskkill /pid taskkill /IM
51
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
Full backup
52
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.
incremental backup
53
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.
differential backup
54
Contains audit events that may affect the security of the system, user activities such as logon/logoff, and resource access attempts.
Security Log
55
Contains events logged by non-OS and third-party applications.
Application Log
56
Contains actions that occur during Windows setup
Setup Log
57
Contains events logged by OS components.
System Log