Changes

Jump to: navigation, search

Tutorial 1: Using Your Matrix Server Account

2,114 bytes added, 19:18, 10 May 2021
Part 1: Using the Linux Shell
# Press the <span style="font-family:courier;color:blue;font-weight:bold">up arrow</span> key combination, and see what happens when you press <span style="font-family:courier;color:blue;font-weight:bold">BACKSPACE</span> , <span style="font-family:courier;color:blue;font-weight:bold">&lt;ctrl&gt;&lt;BACKSPACE&gt;</span> and <span style="font-family:courier;color:blue;font-weight:bold">&lt;ctrl&gt;&lt;h&gt;</span>.<br>Why is it important to know those series of key combinations?<br><br>
# Press the <span style="font-family:courier;color:blue;font-weight:bold">ctrl-u</span> key combination to clear the line.<br><br>
# Press the <span style="font-family:courier;color:blue;font-weight:bold">ctrl-l</span> key combination. What happens? What is the advantage of using '''ctrl-u''' as opposed to '''ctrl-l'''?<br><br>The Bash shortcut keys that you just learned are sufficient to perform Bash Shell editing.<br>Although you are NOT required to learn other short-cut keys, here is a link to a listing in case you are interested:<br>[https:// ostechnix.com/list-useful-bash-keyboard-shortcuts/ Useful Bash Shell Keyboard Shortcuts]<br><br>'''Running a Shell Script to Check Student Participation''' Some professors will require students successfully perform these online tutorials for marks (within a deadline). In order to confirm that you successfully performed a tutorial, you will be required to run a program (or several programs) to prove that you successfully completed tasks in the tutorial. These programs (known as Shell Scripts) will check your work and offer feedback if you made mistakes, so you can make corrections. Making corrections (i.e. troubleshooting) and re-running these checking programs until you are successful will help students gain "hands-on" experience that will help them complete the online assignments. Students whose professors do NOT assign marks for these online tutorials are encouraged to perform them for "hands-on" practice. The checking program for this tutorial is just showing proof that you were able to connect to your Matrix account from your home computer.  <table align="right"><tr valign="top"><td>[[Image:script-check-1.png|thumb|right|250px|If all all check pass, then user performed task correctly and can continue.]]</td><td>[[Image:script-check-2.png|thumb|right|450px|If there is a warning, then feedback is provided to user to correct and re-run checking script.]]</td></table>To check for mistakes, a '''shell script''' has been created to check your work. If the checking shell script detects an '''error''', then it will provide feedback and offer constructive feedback on how to fix that problem so you can re-run the checking shell scripts until your work is correct.  '''Perform the Following Steps:''' # Make certain that your current directory is '''your home directory'''.<br><br># Issue the following Linux command to run a checking script:<br><span style="color:blue;font-weight:bold;font-family:courier;">bash /home/murray.saul/myscripts/week2-check-1</span><br><br># If you encounter errors, then view the feedback to make corrections, and then re-run the checking script. If you receive a congratulation message that there are no errors, then proceed to the next part.<br>Let's run a '''program''' to '''confirm''' that you were able to successfully login into your Matrix account.<br><br>
#Issue the following Linux command to run a checking script:<br><span style="font-family:courier;color:blue;font-weight:bold">bash /home/murray.saul/myscripts/week1-check</span><br><br>Your screen should clear and indicate that you have proved that you have successfully logged in.<br>An email will be sent to your Seneca email as '''confirmation''' in case your ULI101 professor is assigning marks to these tutorials.<br><br>
13,420
edits

Navigation menu