Open main menu

CDOT Wiki β

Changes

OPS235 Lab 1 - Fedora17

90 bytes added, 22:18, 11 January 2012
no edit summary
Navigate through your Graphical Fedora system, '''locate and run a terminal program (in order to issue Linux commands). Issue and record the commands used and the output generated in each of the following steps:'''
# The name of the installation log file is <code>'''/root/install.log'''</code> -- It is an ASCII file (how can you be sure?) which can be viewed with the <code>less</code> command.
# You can make use of this file to determine how many packages have been installed: complete the following command to count the number of packages listed in the installation log file:
:: <code>grep ________________ /root/install.log | wc -l</code>
<li value="3">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:</li>
</ol>
:: <code>'''rpm -q -a'''</code>:: <code>'''rpm -q -a | wc -l'''</code>:: <code>'''rpm -qa | wc -l'''</code>
<ol>
<li value="4">The <code>'''-q'''</code> option means query, and the <code>'''-a'''</code> option means all (in other words, query all installed software packages). Did you get the same number of packages from the above two methods?</li>
<li>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>
<ol>
<li value="6">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>
:: <code>'''rpm -ql package_name| wc -l'''</code>
<ol>
<li value="8">Using what you learned in steps 3, 4, and 8, get a count of the total number of files installed by all of the software packages on your system.</li>
<li>To find out the name that you have assigned to your Linux system, enter the command: <code>'''hostname'''</code></li>
<li>To find out the kernel version of your GNU/Linux workstation and the date it was created, enter the command: <code>uname -r</code></li>
<li>To find out all the system processes running on your GNU/Linux workstation, enter the command: <code'''>ps -ef'''</code></li><li>To capture the list of all the system processes to a file called <code>'''ps.lst'''</code>, enter the command: <code>ps -ef > ps.lst''</code></li><li>Copy the installation log file <code>'''/root/install.log'''</code> and the file ps.lst to a USB memory key, or scp to your matrix account as a backup.</li>
<li>View the section below to learn about and perform an update on your fresh Fedora16 install (you may have to find spare time to perform this install if you are running short on lab time). '''Do <u>not</u> proceed to Investigation 3 without performing an update'''.</li>
</ol>
13,420
edits