Changes

Jump to: navigation, search

OPS235 Lab 1 - CentOS7

355 bytes added, 15:06, 31 March 2015
no edit summary
</pre>
<ol><livalue="10">Save, run the script, and view the resulting file contents.</li><li>Edit the shell script and issue the build the report to include empty lines, titles, and content for the remaining commands: ps aux and ifconfig.</li><li>Save, run and confirm that the shell script is working correctly.</li><li>What would be the use of keeping this shell script as a Linux system administrator?</li></ol>
 #<ol><li value="14">Here are some more "complex" Bash Shell scripts, that perform the same task. Although you are not require to understand some of these other tricks, it is recommended that you view the contents of the scripts and save them for future consideration or exmaples.</li><li>The <b><code>wget</code></b> command can be used to quickly download files from the Internet. Issue the following command:<blockquote><b><code><span style="pointer-events: none;cursor: default;color:#3366CC;font-size:1.2em;">wget https://scs.senecac.on.ca/~murray.saul/text-report.bash</span></code></b></blockquote>#</li><li>Verify that the file '''text-report.bash''' was downloaded to your current directory.#</li><li>Assign read and execute permissions for this file by issuing the command: <b><code>chmod u+rx text-report.bash</code></b>#</li><li>Run this Bash Shell script by issuing the command: <b><code>./text-report.bash</code></b>#</li><li>Check to see if it created a report in your current directory. What is the purpose of the report?#</li><li>Use the <b>vi</b> text editor to view the contents of the file <b>text-report.bash</b>. Can you understand how this script works?<br><br>#</li><li>Use the <b><code>wget</code></b> command to download, study, and run the following shell scripts on-line:<blockquote><b><code><span style=" pointer-events:none;cursor:default;color:#3366CC;font-size:1.2em;">https://scs.senecac.on.ca/~murray.saul/report.bash<br>https://scs.senecac.on.ca/~murray.saul/report3.bash</span></code></b></blockquote>#</li><li>Try to understand what these Bash Shell scripts do.#You have completed lab1. Proceed to Completing The Lab, and follow the instructions for "lab sign-off".</li></ol>
|width="40%"|
<div="width:40px;align:right;">{{Admon/tip|Bash Shell Scripting Tips / Tutorial||
13,420
edits

Navigation menu