13,420
edits
Changes
no edit summary
# Open a Shell terminal and use a text editor (such as <b><code><span style="color:#3366CC;font-size:1.2em;">vi</span></code></b> or <b><code><span style="color:#3366CC;font-size:1.2em;">nano</span></code></b>) to create a Bash Shell script called: <b><code><span style="color:#3366CC;font-size:1.2em;">report.bash</span></code></b> in your current directory.
# Enter the following text content into your text-editing session:
<br>
<span style="font-family:courier;font-weight:bold;padding-left:4px;margin-left:15px;">
#!/bin/bash # Forces script to run in the bash shell<br>
<br>
# Author: *** INSERT YOUR NAME ***<br>
# Date: *** CURRENT DATE ***<br>
<span style="font-family:courier;font-weight:bold;padding-left:4px;margin-left:15px;">
# Create report title<br>
<br>
echo "SOFTWARE ASSET REPORT FOR INSTALLED LINUX SYSTEM" > /root/report.txt<br>
echo "Date: $(date +'%A %B %d, %Y (%H:%M:%p)')" >> /root/report.txt<br>