Windows Powershell Flashcards
pwd
print working directory
hostname
my computer’s network name
mkdir
make directory
ls
list directory
rmdir
remove directory
cd
change directory
pushd
push directory
popd
pop directory
cp
copy a file or directory
robocopy
robust copy
mv
move a file or directory
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 varialble
exit
exit the shell
runas
DANGER! become super user root DANGER!
rm
remove a file or folder
rm -r
recursive remove every thing within a directory
forfiles
Selects and executes a command on a file or set of files. This command is useful for batch processing.
runas
Allows a user to run specific tools and programs with different permissions than the user’s current logon provides.
attrib
Displays, sets, or removes attributes assigned to files or directories. If used without parameters, attrib displays attributes of all files in the current directory.
icacls
Displays or modifies discretionary access control lists (DACLs) on specified files, and applies stored DACLs to files in specified directories.