Monad cheat sheet for cmd.exe users
Many people in windows environment are cmd.exe users. This cheat sheet will help these users to move to Monad shell easily by showing cmd.exe equivalents in Monad.
I will keep this blog uptodate as I discover commands for which users are struggling.
CMD.EXE |
Monad Equivalent |
cd |
set-location cd |
cd c:\temp |
set-location c:\temp |
cls |
clear-host cls |
copy con |
function copycon { [system.console]::in.readtoend() }
|
copy con foo.txt |
copycon | set-content foo.txt |
dir |
get-childitem dir |
dir /ad |
get-childitem | where { $_.MshIsContainer } dir | where { $_.MshIsContainer } |
dir /od |
get-childitem | sort-object LastWriteTime dir | sort LastWriteTime |
dir /o-d |
get-childitem | sort-object LastWriteTime -desc dir | sort LastWriteTime -desc |
pushd |
push-location |
popd |
pop-location |
start . |
invoke-item . ii . |