Shell (Windows) Flashcards
Learning common shell commands
pwd
print working directory
hostname
my computer’s network name
mkdir
make directory
cd
change 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
more
page through a file (c.f. less)
type (cat)
print the whole file (c.f. cat)
forfiles
run a command on lots of files
dir -r
find files (c.f. find)
select-string
find things inside files (c.f. grep)
help (man)
read a manual page (c.f. man)
helpctr
find what manual page is appropriate (c.f. apropos)
echo
print some arguments
set
export/set a new environment variable (c.f. export)
exit
exit the shell
runas
DANGER! become super user root DANGER! (c.f. sudo)
attrib
change file attribute
icacls
view & modify Access Control List
New-Item
make an empty file (c.f. touch)
#
Octothorpe