Changes

Jump to: navigation, search

OPS235 Lab 1 - CentOS7

592 bytes added, 15:02, 31 March 2015
no edit summary
</pre>
<ol><livalue="8">Save and run the bash shell script. View the contents of the file called "report.txt" that was generated. Notice how the redirection symbol &gt; is used at the beginning of the report, and then the other redirection symbol &gt;&gt; is used to help "grow" the report with the other content.</li><li>The only remaining content of the report would be the system information. We can use a shell scripting trick called "command substitution" $( .. ) in order place results from an command to be used by another command (like echo). Re-edit the shell script and add the following code at the bottom of the shell script file:</li></ol>
<pre style="font-family:courier;font-weight:bold;padding-left:4px;margin-left:15px;">
</pre>
<ol><li>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>
13,420
edits

Navigation menu