Dr. Mark Humphrys

School of Computing. Dublin City University.

Home      Blog      Teaching      Research      Contact

My big idea: Ancient Brain

Search:

CA114      CA170

CA668      CA669      Projects


Windows command line

The Windows command line (or DOS command-line) on Microsoft Windows also has commands you can type at a prompt.




Customisation




Demo in lecture




Demos

  1. cls (like UNIX clear)

  2. cd (works like in UNIX)

  3. cd (with no argument) (is like UNIX pwd)

  4. find (like grep)
    find "Henry" home.html
    


Wildcards

  1. File wildcards work. Go into "richardii" and try:
    find "Ireland" *.html
    
    Lists all files plus matches. Lists files even if they have no matches.

  2. Some directory wildcards work.
    From the home Shakespeare directory:
    cd macb*
    

  3. Some directory wildcards don't work.
    From the home Shakespeare directory, this works:
    find "Ireland" richardii\*.html
    
    but this does not work:
    find "Ireland" *\*.html
    
  4. You can get around this by writing a batch file with a FOR loop.




Reference



ancientbrain.com      w2mind.org      humphrysfamilytree.com

On the Internet since 1987.

Wikipedia: Sometimes I link to Wikipedia. I have written something In defence of Wikipedia. It is often a useful starting point but you cannot trust it. Linking to it is like linking to a Google search. A starting point, not a destination. I automatically highlight in red all links to Wikipedia and Google search and other possibly-unreliable user-generated content.