Powershell Commands Flashcards
pwd
print working directory
Tells you where you are
hostname
my computer’s network name
mkdir
make directory
ls
list directory
rmdir
remove directory
pushd
push directory
popd
pop directory
cp
copy a file or directory
robocopy
robust copy
mv
move a file or directory
rather - renaming them
more
page through a file
type
print the whole file
forfiles
run a command on lots of files
dir -r
find files
select-string
find things inside files
help
read a manual page
helpctr
find what man page is appropriate
echo
print some arguments
set
export/set a new environment variable
exit
exit the shell
runas
Danger! become super user root Danger!
cd ~
Takes you home
cd
change directory
cd ..
go back up one level
new-item
create a new file
cp -recurse
copy directory