Powershell commands Flashcards
ls
list directories
get-help ls
brief summary of command’s parameters
Get-help ls -Full
description of parameters and how to use the command
Ls -force [drive name c:\]
show hidden and system files and directories
pwd
print working directory (shows which directory you’re working in)
cd
change directory
cd ..
go back up one level from the directory you are in
cd ~
moves me back to the home or main directory
mkdir
make directory (folder)
to create spaces in a directory name put it in single quotes ‘my cool folder’ or with back tick marks my cool
folder
` - back tick mark
escape characters which tell the shell to treat the next item literally
history or ctrl+r
displays previous commands used and then I can navigate the commands with up and down arrows and then repeat or change the command without typing all of it
clear
clears the output on the screen if its looking a little cluttered
cp
copy file
*
anything
-recurse
lists the contents of the directory