Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, I'm a student following an Operating Systems course. I need to make a small task on Linux using information found in the directory /proc. I'm stuck on some questions. ...
  1. #1
    Just Joined!
    Join Date
    Apr 2011
    Posts
    1

    Student questions: one linercommand in the directory proc

    Hello,

    I'm a student following an Operating Systems course. I need to make a small task on Linux using information found in the directory /proc. I'm stuck on some questions.

    I may not use commands like 'ps' ..., all the information must come from /proc/

    All the work must be done be parsing files in de directory proc.

    Any help would be great!

    1. Where does the command free gets its data from? Interpret the output
    (something with strace?)

    2. How much time was the processor unemployed since boot? Calculate the percentage of the total time which the processor was unemployed, and the percentage of the useful processor time that has been used by the operating system
    (using the file /proc/uptime)

    3.· How much memory is available on this machine, and how much is still available? Is the swap space used at the moment? Which process occupies the largest amount of system ram?

    4. How can you (as root) through /proc:

    - Change the reaction of the system to ctrl-alt-del? What are the possible actions?

    - Don't respond to ICMP Echo requests anymore (ping requests)?


    5. List (use only one command line) all processes in the state RUNNING.

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,086
    Hello and welcome to the forums, Tobeye!

    We're sorry, but homework questions are not allowed on the forums:

    http://www.linuxforums.org/forum/lin...ums-rules.html

    With any luck, you might be able to google the answers you seek.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •