Day 2 MOD 5 Flashcards
this is defined as the grammatical rules and patterns governing the ordered use of appropriate words and symbols for issuing commands.
Syntax
Parameters used to specify command features and options
Arguments
Three basic parts of syntax
C
O
A
Command
Options
Arguments
Feature built into windows that lists many built-in commands and may also be used to display detailed information for each.
/? Used at the end of a command
Help
Indicates a separation between the command and its Associated arguments. Other common forms of this are.
/
-
;
Delimiter
These are used to identify optional arguments in Windows.
[ ] brackets
This 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 can be used.
( | ) pipe
Wildcard characters, like this symbol may also be used to denote anything and everything within a specific argument.
Asterisk *
This is used to display output one screen at a time.
More
This identifies the current location in the system’s directory structure, known as the working directory or present working directory.
Prompt
This is the current location in the systems directory.
Working directory
analyst must be able to navigate through a file system using these to either 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 open 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.
Relative path
Changing working directories within the CLI, is accomplished using the ______ command.
cd
Displays the name of or changes current directory.
cd
What does this command do?
c:\cd /d f:
Change current drive from c to f
What does this command do?
C:>cd
Displays current working directory
What does this command do?
C:\dir1\dir2>cd\
Changes the root directory to C:\
What does this command do?
C:\dir1\dir2>cd..
Changes to Parent Directory C:\dir1
What does this command do?
C:>path
Displays the path statement
What does this command do?
C:>path=%path%;c:\Tools
Adds C:\Tools directory to the path statement
Instead of typing out the entire path statement this variable can be used to represent the current path.
%path%
Specifies a command prompt
Prompt
What does this command do?
Prompt
Specifies text for command prompt
What does this command do?
$P
Specifies current working directory for command prompt
What does this command do?
$G
Specifies ‘>’ for command prompt
What does this command do?
dir
Displays a list of files and subcategories
What do these command do?
dir/t:
dir/a:
dir/s:
Controls which time field to display
Displays files with a specified attribute
Displays files and directories and all subcategories.
What does this command do?
C:>cls
Clears the screen
What do these command do?
C:>date
C:>date /t
Prompts for date change
Displays date without prompting for change
What do these command do?
C:>time
C:>time /t
Prompts for new time change
Displays time without prompting for change
What does this command do?
C:\ver
Displays os version
What does this command do?
C:>title my window
Title of the CLI window is renamed to my window
What does this command do?
C:>exit
Closes the CLI window
What do these commands do?
C:>mkdir example\folder
C:>mkdir example folder
C:>mkdir “example folder”
mkdir command, creates a directory.
Creates a folder directory nested in example directory.
Create separate directories in current directory.
Creates a single directory named example folder.
What do these commands do?
C:>rmdir example
C:>rmdir example \s
rmdir command, removes a directory.
Removes example directory, if empty.
Removes example directory and all contents.
What does this command do?
C:\dir1>copy con example.txt
This an example message.
Cntrl z enter
Copy control command, creates a simple text file and saves it in the directory you specify.
What do these commands do?
C:>edit example.txt Note: not available on 64 bit systems
C:>notepad example.txt. Note: same functions as above but is for use on 64 bit systems
Edit/notepad command, uses editor to create and edit text files
Creates and opens a text file in Ms dos editor to edit file contents.
Creates and opens a text file in notepad for editing.
What do these commands do?
C:>copy example.txt C:\dir1\file2.txt
C:>copy example1.txt+example2.txt c:\dir1
Copies example1.txt to c:\dir1 and renames it to file2.txt
Combines example1.txt and example2.txt as example1.txt in c:\dir1
Copy- copies one or more files to another location.
What do these commands do?
C:>move example.txt c:\dir1\new.txt
C:>move example.txt new.txt
This is the move command, it moves and renames files and directories.
Copies example.txt to c:\dir1 renaming it to new.txt
Renames example.txt to new.txt
What do these commands do?
C:>type example.txt
C:>type example.txt | more
This is the type command, it displays the contents of a text file or files.
Displays contents of example.txt
Displays contents or example.txt one page at a time
What do these commands do?
C:>ren example.txt new.txt
C:>ren dir1 new1
Rename command, renames a file or directory.
Renames example.txt to new.txt
Renames directory dir1 to new1
What does this command do?
C:>find /n /I “fox” example.txt
Notes:
/n displays line numbers of lines containing specified text string.
/I ignores case when searching for specified string
Find command, searches for a text string in a text file or files.
The syntax example displays line number and line containing the text Fox ignoring case sensitivity.
What do these commands do?
C:>del example.txt example2.txt
C:>del *.txt
Del command, deletes one or more files.
Deletes example.txt and example2 .text
Deletes all files with .text extension
What do these commands do?
C:>xcopy /e dir1 f:\
C:>xcopy /e dir1 f:\dir1
Xcopy command, copies directory trees and files.
Copies contents or dir1, files and subdirectories, to F:\ Note: does not recreate dir1 directory in F:\, so contents or source dir1are in the root of F:\
Copies contents of dir1 files and subdirectories to F:\
What do these commands do?
C:>doskey
C:>doskey / history
Doskey command, recalls windows commands
Displays windows commands entered
Displays all previously entered commands