Changes

Jump to: navigation, search

Tutorial8: Links / Process Management

242 bytes removed, 17:33, 25 February 2021
INVESTIGATION 3: ALIASES / COMMAND HISTORY
# Run the '''lh''' alias to see what happens.<br><br>What happenned?<br><br>
# Logout of your Matrix account, than log into your Matrix account.<br><br>
# Reissue the '''lh''' alias. What happened? Why?<br><br>The checking script below is designed to act as a '''FYI:filter''' with a ''' In order to PROPERLY run the following checking script, we need to run it via the "dot" (.) pipeline command'''. This will allow to check if your '''lh''' alias exists when it is done by typing a period, followed by a space, and then followed by the checking script's pathname. By running the "dot" command, aliases that were set checked in your current session are recognized within the running script for checking purposesthis program.<br><br># Issue the following Linux pipeline command to check your work ("'''.'''" as the '''command''' and pathname as the '''argument'''): <br><span style="color:blue;font-weight:bold;font-family:courier;">. alias | bash /home/murray.saul/scripts/week8-check-3</span><br><br>If you encounter errors, then view the feedback to make corrections, and then re-run the checking script.<br>If you receive a congratulation message that there are no errors, then proceed with this tutorial.<br><br>
# Issue the following Linux command: <span style="color:blue;font-family:courier;font-weight:bold">history | grep "lh"</span><br><br>What do you notice?<br><br>
# Press an exclamation mark ! immediately followed by the number by one of those commands listed in the history list and press <span style="color:blue;font-family:courier;font-weight:bold">ENTER</span><br><br>What happened?<br><br>
13,420
edits

Navigation menu