Monday, May 19, 2008

Some useful commands for working with Solaris 5

  1. Reading info about running process:

  2. $ ps -ef

  3. Checking check sum

  4. $ digest -a md5 -v /bin/ls
    md5 (/bin/ls) = b57e173220af4b919f1d4bef9db11482


  5. Show list dynamic dependencies of executable files or
    shared objects


  6. $ ldd -v solaris-x86-32/libyjpagent.so

  7. Look at ports of processes


  8. pfiles `ptree | awk '{print $1}'` | egrep '^[0-9]|port:'
    pfiles PID | egrep '^[0-9]|port:'

No comments: