Changes

Jump to: navigation, search

Tutorial10: Shell Scripting - Part 1

105 bytes added, 10:33, 3 September 2020
INVESTIGATION 2: USING VARIABLES IN SHELL SCRIPTS
# Add the following lines to the bottom of the file:<br><span style="font-family:courier;">echo "The current username is: $USER"<br>echo "The current directory location is: $PWD"<br>echo "The current user's home directory is: $HOME</span><br><br>
# Save your editing changes and exit your text editor.<br><br>
# Run your '''renamed shell script for confirmation by issuing:<br><span style="color:blue;font-weight:bold;font-family:courier;">./hello.bash''' shell script.</span><br><br>Take time to view the output and the values of the environment variables.<br><br>
# Issue the following linux command to add your current directory to the PATH environment variable:<br><span style="color:blue;font-weight:bold;font-family:courier;">PATH=$PATH:.</span><br><br>
# Issue the following linux command to confirm that the current directory "." has been added to the PATH environment variable:<br><span style="color:blue;font-weight:bold;font-family:courier;">echo $PATH</span><br><br>
13,420
edits

Navigation menu