Windows command line
The Windows command line
on Microsoft Windows
also has commands you can type at a prompt.
- Change prompt:
- prompt $v$s$g$s
- default is probably: prompt $p$g$s
- Change colour:
- color f0 (black on white)
Demo in lecture
- cls (like UNIX clear)
- cd (works like in UNIX)
- cd (with no argument) (is like UNIX pwd)
- find (like grep)
find "Henry" home.html
- File wildcards work.
Go into "richardii" and try:
find "Ireland" *.html
Lists all files plus matches.
Lists files even if they have no matches.
- Some directory wildcards work.
From the home Shakespeare directory:
- 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
- You can get around this by writing a batch file with a FOR loop.