Command Line Crash Course Flashcards
What does the “rm -rf” command do in PowerShell and when should you use it?
It deletes one or more items and should never be used.
PowerShell command: pwd
print working directory
PowerShell command: hostname
my computer’s hostname
PowerShell command: mkdir
make directory
PowerShell command: cd
change directory
PowerShell command: ls
list directory
PowerShell command: rmdir
remove directory
PowerShell command: pushd
push directory
PowerShell command: popd
pop directory
PowerShell command: cp
copy a file or directory
PowerShell command: robocopy
robust copy: efficiently copy or transfer multiple files (up to 1M?)
PowerShell command: mv
move a file or directory
PowerShell command: more
page through a file
PowerShell command: print
print the whole file
PowerShell command: forfiles
run a command on loots of files