13,420
edits
Changes
→INVESTIGATION 1: BOOTING KNOPPIX (LIVE LINUX) VIA VIRTUALBOX
# Issue the '''ls''' command to confirm that the file week7-demo-1<br>has been downloaded to your current directory.<br><br>
# Issue the following to run this shell script:<br><span style="color:blue;font-weight:bold;font-family:courier;">bash week7-demo-1</span><br><br>What did you notice?<br><br>
# Issue the following Linux command:<span style="color:blue;font-weight:bold;font-family:courier;">ls -l week7-demo-1</span><br><br>Notice there are NO '''execute''' permissions. That is why we have to issue the bash command prior to the shell script name to force it to run in the bash shell. Let's '''<u>add</u> execute permissions''' so we can run this command by name (without using the '''bash''' command).<br><br># Issue the following command to add execute permissions for everyone for this file:<br><span style="color:blue;font-weight:bold;font-family:courier;">chmod +x week7-demo-1</span><br><br>'''FYI: ''' This method is a quick method of adding execute permissions for owner, same group members and others.<br><br>
# Issue the '''ls -l''' command for this file to confirm execution permissions were properly added.<br><br>
# Issue the following: <span style="color:blue;font-weight:bold;font-family:courier;">./week7-demo-1</span><br><br>Did the shell script run?<br><br>