Windows Powershell Flashcards
1
Q
pwd
A
print working directory
2
Q
hostname
A
my computer’s network name
3
Q
mkdir
A
make directory
4
Q
ls
A
list directory
5
Q
rmdir
A
remove directory
6
Q
cd
A
change directory
7
Q
pushd
A
push directory
8
Q
popd
A
pop directory
9
Q
cp
A
copy a file or directory
10
Q
robocopy
A
robust copy
11
Q
mv
A
move a file or directory
12
Q
more
A
page through a file
13
Q
type
A
print the whole file
14
Q
forfiles
A
run a command on lots of files
15
Q
dir -r
A
find files
16
Q
select-string
A
find things inside files
17
Q
help
A
read a manual page
18
Q
helpctr
A
find what man page is appropriate
19
Q
echo
A
print some arguments
20
Q
set
A
export/set a new environment varialble
21
Q
exit
A
exit the shell
22
Q
runas
A
DANGER! become super user root DANGER!
23
Q
rm
A
remove a file or folder
24
Q
rm -r
A
recursive remove every thing within a directory
25
forfiles
Selects and executes a command on a file or set of files. This command is useful for batch processing.
26
runas
Allows a user to run specific tools and programs with different permissions than the user's current logon provides.
27
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.
28
icacls
Displays or modifies discretionary access control lists (DACLs) on specified files, and applies stored DACLs to files in specified directories.