Changes

Jump to: navigation, search

Tutorial10: Shell Scripting - Part 1

388 bytes added, 07:57, 19 July 2020
INVESTIGATION 2: USING VARIABLES IN SHELL SCRIPTS
# Run your hello.bash shell script. What shell does the shell script indicate is running?<br><br>This is because of the shebang line indicating to run the shell script in the Bash shell although you ran this script within the c-shell.<br><br>
# Enter the following linux command to return to your Bash shell: <span style="color:blue;font-weight:bold;font-family:courier;">exit</span><br><br>
# Use a text editor to edit the shell script called '''hello.bash'''<br><br>
# 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>
 
In the next investigation, you will ...
13,420
edits

Navigation menu