First Class of Shell Programming
|
1. Introduction to Virtual Machine and UWIN
|
2. Install UWIN
|
3. Launch UWIN and File Manager on D: (two windows side by side)
|
4. Demonstrate the following commands on UWIN and see the result in File Management Window
|
Explain File Hierarchy and its navigation, cd, pwd
|
pwd cd /D pwd cd pwd cd - pwd mkdir TEST cd TEST pwd cd .. pwd cd - pwd |
---|
5. Get into Folder TEST on File Management Window
|
(From now on, everything you did will be reflected in File Management Window)
|
6. Demonstrate the following commands on UWIN and see the results in File Management Window
|
echo Hello World echo Hello World > 1.txt cat 1.txt |
---|
Use Notepad to view 1.txt
|
echo $HOME echo My Home is $HOME > 1.txt echo 'My Home is $HOME' > 2.txt echo "My Home is $HOME" > 3.txt cat 1.txt cat 2.txt cat 3.txt ls ls -l ls -t |
---|
Use Notepad to view 1.txt 2.txt 3.txt
|
cat *.txt cat *.txt > all.txt |
---|
Use Notepad to view all.txt
|
for i in *.txt do echo "==== $i =====" cat $i done > all.txt |
---|
Use Notepad to view all.txt
|
for i in 1 2 3 4 5 do mkdir $i done |
---|
View the result on File Management Window
|
rmdir * |
---|
7. Ask students to practice
|