Re: Solaris command equivalents in Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You can find information in the /proc/<PID>/ directory where this
information will be stored in a file.
In order for all the stuff in /proc to make sense read proc manpage
"man proc" will tell more info.
for example:
#ps -ef | grep httpd
root     32319     1  0 14:11 ?        00:00:00 /usr/sbin/httpd
----------------------...... ----------------------------------
#cd /proc/32319
#ls
attr  auxv  cmdline  cwd  environ  exe  fd  maps  mem  mounts  root 
stat  statm  status  task  wchan
#cat environ
TERM=xtermPATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/binPWD=/LANG=en_US.UTF-8SHLVL=1_=/sbin/initlog[root@12345454 32319]#
#cat stat
32319 (httpd) S 1 32319 32319 0 -1 4194624 2064 0 0 0 37 1 0 0 16 0 1 0
114081464 28602368 3229 4294967295 10395648 10651372 4277615776
4277615276 3429378 0 0 16781312 18027 0 0 0 17 0 0 0
#cat map
Really ugly output .............


There is also the command procinfo and pstack .
That is all I know hope this helps.







On Tue, 2004-07-27 at 14:22, Kevin wrote:
> This is a question for any Solaris/Linux admins.
> 
> What (if any) are the Linux equivalents to the following Solaris commands:
> 
> 1) pargs (Print process arguments, environmental variables, etc)
> 2) pcred (Display process credentials)
> 3) pfiles (Display open file info)
> 4) pldd (List dynamic libs associated to process)
> 5) pwdx (Display current working directory for process)
> 
> Thanks
>   Kevin
> 




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux