how to install top command in solaris 10

Posted on 2008-11-17
Last Modified: 2013-12-27
Sun Server Version : SunOS 5.10 Generic_118833-36 sun4u sparc SUNW,Sun-Fire-V890

Top.cls , dl  command is not working in solaris 10
bash: top: command not found

Please give me the steps to install top command in my server

Question by:Spice_Telecom
    LVL 68

    Expert Comment

    please look here -

    LVL 21

    Accepted Solution


    Download the compiled version from here:

    gunzip top-3.6.1-sol10-sparc-local.gz
    pkgadd -d gunzip top-3.6.1-sol10-sparc-local

    start as /usr/local/bin/top

    LVL 22

    Expert Comment

    Why do you want to use top instead of prstat? The top command uses Sun private interfaces and can cease to work when a patch is installed. Is there something that the more stable prstat command does not provide you that you need?
    LVL 21

    Expert Comment



    I don't want to answer in place of Spice_Telecom, but in my personal opinion a lot of admins prefer to use top because it provides some general memory/swap statistics, %iowait, etc... in a blink of an eye.


    Expert Comment


    If you have access to a solaris 5.9 Server then copy the top command from /usr/local/bin

    Kind Regards,

    Expert Comment

    The pkgadd command shown in the solution has a typo, it should be:
    pkgadd -d top-3.6.1-sol10-sparc-local

    In addition, I would update /etc/profile to append /usr/local/bin to the PATH by adding a line such as:
    export PATH=$PATH:/usr/local/bin

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. Please see for the updated article. It is avail…
    I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now