psinfo equivalent on linux.

What would be the equivalent of /proc/self/psinfo
on linux.

Thanks
csr18Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jcaldwelCommented:
I am not familiar with /proc/self/psinfo. Could you explain it?
0
alain_tesioCommented:
/proc/self/psinfo is on Solaris but I don't know exactly what it provides.
Please tell exactly what data you need
Maybe vmstat, free, ps or some files in /proc
0
pjedmondCommented:
I believe that it provides process information. The nearest that you can get to this is a combination of the following commands:

top

which prints out resource usage for the most processor intensive processes (but can be switched to find information relating to a specific process), and

ps -ef

or equivalent that will list out all the processes on the system.

Sorry there doen't appear to be an exact equivalent, but by using the above 2 commands, and changing some of the switches used, you can get allthe info that you need.

Hope that helps:)
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

AnhLePhuocCommented:
Try:
     /proc/self/status        for the current process
or:
     /proc/<pid>/status
for the process with specified process ID
0
pjedmondCommented:
Neither:
/proc/self/status
/proc/<pid>/status

work for RedHat as a command, HOWEVER, you can:

cat /proc/self/status
cat /proc/<pid>/status

to get further details aout a specific process

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
vijay_rangarajCommented:
Hi
You can use

/proc/<pid>/stat
/proc/<pid>/status  - More readable than stat
/proc/<pid>/cmdline- Command line used to start
/proc/<pid>/exe  -- link the the executable image

to get your details.
0
csr18Author Commented:
Thanks guys,

I did get my answer a long time ago.
Sorry, forgot that I had posted the question here.

The equivalent psinfo on linux is in the
/proc/<pid>/status file and the relevant data
that one is looking for a process can be obtained
from this file.

Thanks for all your help!
0
jmcgOwnerCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: pjedmond {http:#8175838}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jmcg
EE Cleanup Volunteer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux OS Dev

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.