Share via


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 .

Comments

  • Anonymous
    March 09, 2006
    The comment has been removed
  • Anonymous
    March 09, 2006
    A shortcut for "dir /w" is:

    get-childitem | format-wide -auto

    You can also do multikey sorts so my default "dir" function in Monad is:

    function dir {
       get-childitem $args -force |
       sort @{e={$.MshIsContainer}; asc=$false},
            @{e={$
    .Name}; asc=$true}
    }

    This puts directories first, followed by files and then sorts by name which is equivalent to setting DIRCMD to /OGn.
  • Anonymous
    April 25, 2006
    PingBack from http://hivearchive.com/2006/04/25/microsofts-monad-misses-the-mark/
  • Anonymous
    May 29, 2009
    The comment has been removed
  • Anonymous
    June 19, 2009
    PingBack from http://edebtsettlementprogram.info/story.php?id=22531