Changes

Jump to: navigation, search

Tutorial12: Shell Scripting - Part 2

183 bytes added, 11:43, 21 March 2021
INVESTIGATION 4: USING START-UP FILES
# You can test run the startup file without exiting and re-entering your Bash shell environment.<br>Issue the following:<br><span style="color:blue;font-weight:bold;font-family:courier;">. ~/.bashrc</span><br><br>What do you notice?<br><br>
# Exit your current Bash shell session.<br><br>
# '''Login''' again to your matrix account.<br><br>Did you start-up file customize your Bash shell environment with colours?<br><br>NOTE: This is where you can make your Linux shell environment values '''persistent''' (i.e. saved regardless of exit and login to your Bash Shell such as '''aliases''', etc.).<br><br>
# Issue the following linux command to restore your previous settings for your bashrc startup file:<br><span style="color:blue;font-weight:bold;font-family:courier;">mv ~/.bashrc.bk ~/.bashrc</span><br><br>If you experience an error message "''No such file or directory''", just ignore.<br><br>
# After you complete the Review Questions sections to get additional practice, then work on your '''online assignment 3,'''<br>'''sections 4 to 6''' labelled: '''More Scripting (add)''', '''Yet More Scripting (oldfiles)''', and '''sed And awk'''<br><br>
13,420
edits

Navigation menu