Jump to: navigation, search

OPS235 Lab 1 19

1 byte removed, 15:59, 27 August 2013
no edit summary
:: <code>'''rpm -qa | wc -l'''</code>
<li value="54">The <code>'''-q'''</code> option means query, and the <code>'''-a'''</code> option means all (in other words, query all installed software packages).</li>
<li>Enter the following command and record the number:
<li value="76">Some of the files on your system were installed with the software packages, and some were created by system activity (for example, by creating your Learn account and by logging in). If you know the package name (from the <code>install.log</code>), you can list all the files that were installed from the package by using the following command:</li>
:: <code>'''rpm -q -l package_name'''</code><br />(where '''package_name''' represents the name of the ''application'' or ''package'')
<li value="87">This combines the <code>'''-q'''</code> (query) option with the <code>'''-l'''</code> (list filenames) option</li>
<li>You can pipe the outupt through <code>'''wc -l'''</code> to count the number of lines:</li>
<li value="109">To find out the name that you have assigned to your Linux system, enter the command: <code>'''hostname'''</code></li>
<li>Issue the following command: <code>'''hostname f19host'''</code></li>
<li>Re-issue the <code>hostname</code> command. What happened?</li>

Navigation menu