Changes

Jump to: navigation, search

Tutorial10: Shell Scripting - Part 1

32 bytes removed, 17:24, 17 February 2021
INVESTIGATION 2: USING VARIABLES IN SHELL SCRIPTS
# Confirm that you are located in your '''home''' directory in your Matrix account.<br><br>
# Use a text editor to edit the shell script called '''hello'''<br><br>
# Add the following line to the bottom of the file:<br><span style="font-family:courier;">echo ps -o cmd= -p $$|cut -d"The current shell you are using is: $0"-f1</span><br><br>NOTE: $0 (i.e. $ followed by "zero" will display This command displays the name of the current shell that the shell script is running within.<br><br>
# Save your editing changes and exit your text editor.<br><br>
# Issue the following linux command to change to the Bourne Shell (a different shell than the default Bash):<br><span style="color:blue;font-weight:bold;font-family:courier;">sh</span><br><br>
13,420
edits

Navigation menu