cat /proc/$pid/cmdline (the separator is 0x00... so cat might not be enough as it shows both the exe name and the arguments)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/environ (the separator is 0x00... so cat might not be enough as the environment variables are separated by a 0x00)
have no ideea what it does... you mean the user it runs under? chroot?2) pcred (Display process credentials)
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
cat /proc/$pid/maps3) pfiles (Display open file info)
ldd /proc/$pid/exe4) pldd (List dynamic libs associated to process)
ls -la /proc/$pid/ | grep cwd //cwd is a symlink to the current working directory5) pwdx (Display current working directory for process)
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