Re: Solaris command equivalents in Linux

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

 



On Tue, 2004-07-27 at 21:22 +0100, 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)
cat /proc/$pid/cmdline (the separator is 0x00... so cat might not be enough as it shows both the exe name and the arguments)
cat /proc/$pid/environ (the separator is 0x00... so cat might not be enough as the environment variables are separated by a 0x00)
2) pcred (Display process credentials)
have no ideea what it does... you mean the user it runs under? chroot?
cat /proc/$pid/status | grep Uid //this is for the UID
ls -la /proc/$pid/ | grep root //this shows the chroot and it's a symlink to the root dir of the program
3) pfiles (Display open file info)
cat /proc/$pid/maps
4) pldd (List dynamic libs associated to process)
ldd /proc/$pid/exe
5) pwdx (Display current working directory for process)
ls -la /proc/$pid/ | grep cwd //cwd is a symlink to the current working directory



For most of these things you have lsof and ps with their options.
Thanks
  Kevin


Răzvan Corneliu VILT                      e-mail:razvan.vilt@xxxxxxxxxxx
GPG:http://d3vi1.linux360.ro/public-keys/ www: http://d3vi1.linux360.ro/

Attachment: smime.p7s
Description: S/MIME cryptographic signature


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

  Powered by Linux