Windows CLI mod 5 Flashcards
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.
Shell
Is the grammatical rules and patterns that govern the ordered use of appropriate words and symbols necessary for commands to execute.
Syntax
Are parameters to specify command features and options.
Arguments
Modify the operation of a command.
Options
display the most commonly used built-in commands along with a brief functionality description.
help
C:>help
or
C:>\/?
indicate a separation between the command and its associated arguments.
spaces ( ), forward slash ( / ),the hyphen ( -), or the semi-colon ( ; ).
Delimiters
are used to identify optional arguments.
Brackets [ ]
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.
The pipe ( | )
may also be used to denote anything and everything within a specific argument.
Wildcard characters (*)
indicates it is used to display output one screen at a time.
more
present working directory.
working directory
move from one location to another or identify a particular location of a file or directory.
paths
starts at the volume:root and specifies each directory that must be opened to get to the desired file or directory.
absolute path
gives the location of the target file or directory from (relative to)the present working directory. Uses (..)
relative path
Displays the name of or changes the current directory.
cd
Options:
/d Switch current drive
.. Changes to the parent directory
\ Changes to the root directory
Syntax:
cd /d
cd \
variables whose values are generally set by the OS and affect how programs act on a system.
Environmental variables
Displays path statement
C:>path
Adds C:\tools directory to path statement
C:>path=%path%;C:\tools
Specifies a new command prompt.
Options:
Specifies text for command prompt
$P Specifies working directory for command prompt
$G Specifies ‘>’ for command prompt
prompt
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
dir
Syntax:
dir[drive:][path][filename] [/T[[:]timefield]]
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
dir
Syntax:
dir[drive:][path][filename] [/A[[:]attribute]]
Displays a list of files and subdirectories in a directory.
Option:
/S Displays files in directories and all subdirectories
dir
Syntax:
[/S] [drive:][path][filename]