Monday, March 30, 2020

3/31 E-Learning Ubuntu Emulator and Bash Script

Make Sure this Link Works...https://www.onworks.net/runos/start-os.html?home=init&os=ubuntu-16.04.6-desktop-i386 

Do not click on any of the ads.

We will use this as our LINUX emulator.  It is very slow do not have any other tabs open.


Access the Terminal ...sudo password is 123456

  • type> ls
  • type> gedit test
  • Add this script to the gedit screen
#!/bin/sh
echo "what is your name?"
read name
echo "How do you do, $name?"
read remark
echo "I am $remark too!"
  • Hit SAVE in the right corner.
  • Close the program by clicking the X in the top left corner.
  • type >chmod 777 test
  • run the script
    • >./test
  • answer questions  and snip code.
  • Put the last echo answer in your worksheet.


No comments:

Post a Comment