Common Cmdlet Aliases Flashcards
Get-ChildItem
gci, dir, ls
List all files/directories in the current directory.
Get-Content
gc, type, cat
Get the content of a file.
Get-Command
gcm
List available commands.
Get-Help
help, man
Help on commands.
Clear-Host
cls, clear
Clear the screen.
Copy-Item
cpi, copy, cp
Copy one or several files or a whole directory tree.
Move-Item
mi, move, mv
Move a file/directory to a new location.
Remove-Item
ri, del, erase, rmdir, rd, rm
Delete a file/directory
Rename-Item
mi, ren, mv
Rename a file/directory
Get-Location
gl, pwd
Display the current directory/present working directory.
Pop-Location
popd
Change the current directory to the directory most recently pushed onto the stack.
Push-Location
pushd
Push the current directory onto the stack.
Set-Location
sl, cd, chdir
Change the current directory.
Tee-Object
tee
Pipe input to a file or variable, then pass the input along the pipeline.
Write-Output
echo, write
Print strings, variables etc. to a standard output.