Learning Code the Hard Way – PowerShell commands – Flashcards

Unlock all answers in this set

Unlock answers
question
pwd
answer
print working document
question
hostname
answer
computer's network name
question
mkdir
answer
make directory
question
cd
answer
change directory
question
ls
answer
list directory
question
rmdir
answer
remove directory
question
pushd
answer
push directory
question
popd
answer
pop directory
question
cp
answer
copy a file or directory
question
robocopy
answer
robust copy
question
mv
answer
move a file or directory
question
more
answer
page through a file
question
type
answer
print the whole file
question
forfiles
answer
run a command on several files
question
dir -r
answer
find files
question
select-string
answer
find things inside files
question
help
answer
read a manual page
question
helpctr
answer
find which main page is appropriate
question
echo
answer
print some arguments
question
set
answer
export/set a new environment variable
question
exit
answer
exit the shell
question
runas
answer
become a super root user
question
attrib
answer
change permission modifiers
question
iCACLS
answer
change ownership
question
|
answer
takes the output from the command on the left, and "pipes" it to the command on the right
question
<
answer
takes and sends the input from the file on the right to the program on the left (this does not work in PowerShell)
question
>
answer
takes the output of the command on the left and writes it to the file on the right
question
>>
answer
takes the output of the command on the left, then appends it to the file on the right
question
*
answer
matches anything in a wildcard
Get an explanation on any task
Get unstuck with the help of our AI assistant in seconds
New