Changes

Jump to: navigation, search

Tutorial12: Shell Scripting - Part 2

215 bytes added, 08:45, 4 August 2020
INVESTIGATION 3: USING STARTUP FILES
# Use the '''more''' command to view the contents of the start-up file called '''/etc/profile''' (eg. <span style="color:blue;font-weight:bold;font-family:courier;">more /etc/profile</span>)<br><br>This file contains the default settings when you open your Bourne shell (eg. if issuing the command '''sh''').<br><br>
# Use the '''more''' command to view the contents of the start-up file called '''/etc/bashrc''' (eg. <span style="color:blue;font-weight:bold;font-family:courier;">more /etc/bashrc</span>)<br><br>This file contains the default settings when you open your Bash shell (eg. if issuing the command '''bash''').<br><br>Since we are using the Bash shell by default, let's create a customized Bash start-up file.<br>This startup file is located in your home directory using the name "'''.bashrc'''"<br><br>
# Let's backup your .bashrc file to prevent accidental overwrite.<br><br>Issue the following linux command:<br><span style="color:blue;font-weight:bold;font-family:courier;">cp ~/.bashrc ~.bashrc.bk</span><br><br>
# x
13,420
edits

Navigation menu