17 April 2026

windows equivalents for popular unix commands

Some Windows cmd equivalents for common Unix commands and settings for my onw reference

unix cmd
powershell
echo $variable echo %variable% $variable
$env:variable //environment variable
~ %USERPROFILE% $env:USERPROFILE
variable=value %variable%=value $variable=value
cp source target copy source target  
cp -r source target 
xcopy source target /e/h
find -name '*.txt
dir /s *.txt
grep text
findstr text
ls -a dir /a
rm file del file
rm -rf directory rmdir /s /q directory
which command
where command             (gcm command).Path

No comments:

Post a Comment