21 October 2024

windows equivalents for popular unix commands

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

unix cmd
powershell
echo $variable echo %variable% $variable
$Env:variable //environment variable
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

5 October 2024

New features since Java 21 LTS

 Java 22

_  name for variables that are declared but not used

 Java 23

/// Markdown comments