Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1986
  • Last Modified:

psinfo equivalent on linux.

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

Thanks
0
csr18
Asked:
csr18
1 Solution
 
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
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

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now