Solaris command equivalents in Linux
Razvan Corneliu C.R. "d3vi1" VILT
razvan.vilt at linux360.ro
Tue Jul 27 20:57:53 UTC 2004
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 at linux360.ro
GPG:http://d3vi1.linux360.ro/public-keys/ www: http://d3vi1.linux360.ro/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040727/ce5bf485/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3361 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040727/ce5bf485/attachment-0001.bin>
More information about the fedora-list
mailing list