Powershell Commands Flashcards
Common Powershell Command Lines
1
Q
print working directory
A
pwd
2
Q
my computer’s network name
A
hostname
3
Q
make directory
A
mkdir
4
Q
change directory
A
cd
5
Q
list directory
A
ls
6
Q
remove directory
A
rmdir
7
Q
push directory
A
pushd
8
Q
pop directory
A
popd
9
Q
copy a file or directory
A
cp
10
Q
robust copy
A
robocopy
11
Q
move a file or a directory
A
mv
12
Q
page through a file
A
more
13
Q
print the whole file
A
type
14
Q
run a command on lots of files
A
forfiles
15
Q
find files
A
dir - r