Back to AI Flashcard MakerInformation Technology /JCAC Mod 5 Windows Introductory CLI Commands

JCAC Mod 5 Windows Introductory CLI Commands

Information Technology24 CardsCreated 4 months ago

This flashcard set introduces Windows CLI prompt commands, including customizing the command prompt text, displaying the working directory, and showing the “>” symbol. These commands help personalize and organize the command-line interface for easier navigation.

prompt
prompt $P
prompt $G

specifies text for command prompt
Specifies working directory for command prompt
Specifies ‘>’ for command prompt

Tap or swipe ↕ to flip
Swipe ←→Navigate
1/24

Key Terms

Term
Definition

prompt
prompt $P
prompt $G

specifies text for command prompt
Specifies working directory for command prompt
Specifies ‘>’ for command prompt

dir
dir /T:
dir /A:
dir /S:

Displays a list of files and subdirectories in a directory
Controls which time field to display.
Displays files with a specified attribute

attrib

attrib +R

attrib -H

attrib +S

attrib -A

Displays or changes file attributes.

Turns on/off read-only attribute

Turns on/off hidden attribute

Turns on/off system attribute...

date

date /t

prompts for date change
displays date without prompting for change

time

time /t

displays time and prompts for change
displays time and does not prompt for change

ver

displays OS version

Related Flashcard Decks

Study Tips

  • Press F to enter focus mode for distraction-free studying
  • Review cards regularly to improve retention
  • Try to recall the answer before flipping the card
  • Share this deck with friends to study together
TermDefinition

prompt
prompt $P
prompt $G

specifies text for command prompt
Specifies working directory for command prompt
Specifies ‘>’ for command prompt

dir
dir /T:
dir /A:
dir /S:

Displays a list of files and subdirectories in a directory
Controls which time field to display.
Displays files with a specified attribute
Displays files in directories and all subdirectories

attrib

attrib +R

attrib -H

attrib +S

attrib -A

Displays or changes file attributes.

Turns on/off read-only attribute

Turns on/off hidden attribute

Turns on/off system attribute

Turns on/off archive attribute

date

date /t

prompts for date change
displays date without prompting for change

time

time /t

displays time and prompts for change
displays time and does not prompt for change

ver

displays OS version

title

sets the title for the CLI window

exit

exits the CLI window

mkdir (MaKe DIRectory)

Creates a directory

rmdir (ReMoves DIRectory)

Removes a directory
removes all subdirectories

copy con filename.fileext.

creates a file to contain text written into the console. CTRL +Z and enter to save file as designated filename and filetype

notepad

create and edit text files

copy

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

move

Moves and renames files and directories.

ren (REName)

Renames a file or directory

type

Displays contents of a text file or files

(pipe)

passes the output of one command to the input of another

find
find /n
find /I

Searches for a text string in a text file or files
Displays line numbers of lines containing specified text string
Ignores case when searching for specified string

del

deletes one or more files

xcopy

xcopy /e

Copies directory trees and files
Copies directories and subdirectories, including empty ones

doskey

doskey /history

Recalls Windows commands
Displays all previously entered commands

>

command, not prompt!

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.

> >

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

tree
tree /f
tree /a

Graphically displays the folder structure of a drive or path.
Displays the names of files in each folder
Uses ASCII instead of extended characters