13,420
edits
Changes
→INVESTIGATION 1: USING SECURE COPY
# '''Save''' editing changes to your ''myfile.txt'' file and exit your text editor.<br><br>
# Change back to your '''home''' directory and confirm that you are located in your ''home'' directory.<br><br>Let's run a '''shell script''' to check that you created the correct directories<br>and that you created the '''myfile.txt''' file (with correct file contents) in the '''~/from''' directory<br>before using the ''scp'' Linux command.<br><br>
# Issue the following Linux command to run that checking script: <br><span style="color:blue;font-weight:bold;font-family:courier;">bash /home/murray.saul/scripts/week6-check-1</span><br><br># If you encounter errors, make corrections and then re-run the checking script until you receive <br>a congratulations message, and proceed to the next step.<br><br>'''NOTE:''' As previously mentioned, we will simulate using the scp on another instance of our Matrix server. <br>To make this work, we will need to edit a "start-up" file to place a special series of commands<br><br>
# Use a text editor to edit the following start-up file: '''~/.bashrc'''<br><br>
# Enter the following text (shown below) at the '''TOP''' of this startup file:<br><span style="font-family:courier;font-weight:bold;">[[ $- == *i* ]] || return </span><br><br>