13,420
edits
Changes
no edit summary
-->
# Open a terminal by clicking the '''Activities '''menu, and typing in the search area: '''gnome-terminal'''. A terminal program icon should appear: click on the icon to open a shell terminal.
# Issue the following command: <code>'''su -'''</code>
# Using the <code>rpm</code> command: you can also use the following commands to list all the installed packages, and the total number of packages installed:
:: <code>'''rpm -q -a'''</code>
:: <code>'''rpm -qa | wc -l'''</code>
<ol>
<li value="45">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:
</ol>
<ol>
<li value="67">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>
</ol>
:: <code>'''rpm -q -l package_name'''</code><br />(where '''package_name''' represents the name of the ''application'' or ''package'')
<ol>
<li value="68">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>
</ol>
<ol>
<li value="910">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>