The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Thank you for answering my question, would you be willing this question? The attached document has all the instructions like my previous question.
Â
Online CS351Getting and displaying System InformationObjectives of this Lab:1.The objective of this assignment is to get used to the Linux platform.You will do that bywriting a small program (in either C, C++ or Java) that will access system statusinformation available from the Linux /proc directory.2.Access the (/proc) directory and know about the system information from various files inthis and its sub-directories.How to proceed with the Program:1.Information in the /proc directory is available just as though the files were regular textfiles.You may open those files, read out the data, save or print that data, and then closethe file.Repeat for each file that you need to gather all of the needed data.When youhave gathered all of the information you need, you can print your results to the display.2.Type the program into an editor and compile the program at the command prompt.3.Compiling and execution is done as in Week 4 Linux project.4.If you do not find a description of some system call by themancommand, then try theWeb search enginegooglefor help (Use a Web browser to accesswww.google.com).Where to look for information in (/proc) directory ?Search the (/proc ) directory and its sub-directories for the files which contain informationrequired for this lab. You can refer to the online manual for more information on proc (manproc). For example, you can type the following in the command linemore /proc/hostnameto find the hostname of the machine.Exercise : Write a program in C or C++ or Java to display the following information.1. General information.In this section you will assemble some basic facts about the systema.Machine name (hostname)# get this information from /proc/sys/kernel/hostname
Attachments:
-----------