Skip to content

Instantly share code, notes, and snippets.

@stringsn88keys
Last active April 26, 2024 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stringsn88keys/7e832711970b62bc84d63e114e8997e5 to your computer and use it in GitHub Desktop.
Save stringsn88keys/7e832711970b62bc84d63e114e8997e5 to your computer and use it in GitHub Desktop.
convert cmd or bash to powershell
command from powershell powershell abbreviated
rmdir /q /s c:\folder cmd.exe Remove-Item -Recurse -Force c:\folder rm -r -fo c:\folder
find . -name '*wildcard*' bash Get-ChildItem -Path . -Include '*wildcard*' gci . -inc '*wildcard*'
ls -lart bash Get-ChildItem | Sort-Object LastWriteTime ls | sort LastWriteTime
dir /o:d cmd.exe Get-ChildItem | Sort-Object LastWriteTime ls | sort LastWriteTime
ls -larS bash Get-ChildItem | Sort-Object Length ls | sort Length
dir /o:s cmd.exe Get-ChildItem | Sort-Object Length ls | sort Length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment