404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.145.199.42: ~ $
#!/usr/bin/perl -w
#
# $Id: mytop,v 1.91 2012/01/18 16:49:12 mgrennan Exp $

=pod

=head1 NAME

mytop - display MySQL server performance info like `top'

=cut

## most of the POD is at the bottom of the file

use 5.005;
use strict;
use DBI;
use Config::IniFiles;
use Getopt::Long;
use DBD::mysql;
use Socket;

$main::VERSION = "1.91";

$|=1;
$0 = 'mytop';

my $WIN = ($^O eq 'MSWin32') ? 1 : 0;

## Test for color support.

eval { require Term::ANSIColor; };

my $HAS_COLOR = $@ ? 0 : 1;

$HAS_COLOR = 0 if $WIN;

## Test of Time::HiRes support

eval { require Time::HiRes };

my $HAS_TIME = $@ ? 0 : 1;

my $debug = 0;

## Try to lower our priority (which, who, pri)

setpriority(0,0,10) unless $WIN;

## Prototypes

sub Clear();
sub GetData();
sub GetQPS();
sub FullQueryInfo($);
sub Explain($);
sub PrintTable(@);
sub PrintHelp();
sub Sum(@);
sub commify($);
sub make_short($);
sub Hashes($);
sub Execute($);
sub StringOrRegex($);
sub GetInnoDBStatus();
sub GetCmdSummary();
sub GetShowVariables();
sub GetShowStatus();
sub cmd_s;
sub cmd_S;
sub cmd_q;
sub FindProg($);

## Default Config Values

my %config = (
    batchmode     => 0,
    color         => 1,
    db            => '',
    database	  => '',
    delay         => 5,
    filter_user   => qr/.?/,
    filter_db     => qr/.?/,
    filter_host   => qr/.?/,
    filter_state  => qr/.?/,
    header        => 1,
    help          => 0,
    host          => 'localhost',
    idle          => 1,
    long	  => 120,
    long_nums     => 0,
    mode          => 'top',
    prompt        => 0,
    pass          => '',
    password	  => '',
    port          => 3306,
    resolve       => 0,
    slow	  => 10,	# slow query time
    socket        => '',
    sort          => 1,         # default or reverse sort ("s")
    user          => 'root'
);

my %qcache = ();    ## The query cache--used for full query info support.
my %ucache = ();    ## The user cache--used for full killing by user
my %dbcache = ();   ## The db cache.  This should be merged at some point.
my %statcache = (); ## The show status cache for GetShowStatus()

my (%STATUS, %OLD_STATUS); # header stuff.

my $CLEAR = $WIN ? '': `clear`;

## Term::ReadKey values

my $RM_RESET   = 0;
my $RM_NOBLKRD = 3; ## using 4 traps Ctrl-C :-(

## Try ~/.my.cnf first

my $mycnf = "$ENV{HOME}/.my.cnf";

if (-e $mycnf)
{
       my $cfgini = new Config::IniFiles( -file => $mycnf );
	if ( not defined $cfgini )
        {
                foreach my $error (@Config::IniFiles::errors)
                {
                        print $error;
                        print "\n";
                }
                exit;
        }

        my @sections = ('client', 'mytop');

        foreach my $section (@sections) {
                foreach my $param ($cfgini->Parameters ($section))
                {
                        $config{$param} = $cfgini->val($section, $param) if exists $config{$param};
                }
        }
        ## map database/password onto db/pass (long version gets precedence in .my.cnf)
        $config{'db'} = $config{'database'} if $config{'database'};
        $config{'pass'} = $config{'password'} if $config{'password'};
}


## Read the user's config file, if it exists.

my $config = "$ENV{HOME}/.mytop";

if (-e $config)
{
    if (open CFG, "<$config")
    {
        while (<CFG>)
        {
            next if /^\s*$/;  ## skip blanks
            next if /^\s*#/;  ## skip comments

            chomp;

	    if (/(\S+)\s*=\s*(.*\S)/)
            {
                $config{lc $1} = $2 if exists $config{lc $1};
            }
        }
        close CFG;
    }
    ## map database/password onto db/pass (short version gets precedence for historical reasons)
    $config{'db'} = $config{'database'} unless $config{'db'};
    $config{'pass'} = $config{'password'} unless $config{'pass'};
}

## Command-line args.

use vars qw($opt_foo);

Getopt::Long::Configure('no_ignore_case', 'bundling');

GetOptions(
    "color!"              => \$config{color},
    "user|u=s"            => \$config{user},
    "pass|password|p=s"   => \$config{pass},
    "database|db|d=s"     => \$config{db},
    "host|h=s"            => \$config{host},
    "port|P=i"            => \$config{port},
    "socket|S=s"          => \$config{socket},
    "delay|s=i"           => \$config{delay},
    "batch|batchmode|b"   => \$config{batchmode},
    "header!"             => \$config{header},
    "idle|i!"             => \$config{idle},
    "resolve|r!"          => \$config{resolve},
    "prompt!"             => \$config{prompt},
    "long=i"		  => \$config{long},
    "long_nums!"          => \$config{long_nums},
    "mode|m=s"            => \$config{mode},
    "slow=i"		  => \$config{slow},
    "sort=s"              => \$config{sort}
);

## User may have put the port with the host.

if ($config{host} =~ s/:(\d+)$//)
{
    $config{port} = $1;
}

## Don't use Term::ReadKey unless running interactively.

if (not $config{batchmode})
{
    require Term::ReadKey;
    Term::ReadKey->import();
}

## User may want to disable color.

if ($HAS_COLOR and not $config{color})
{
    $HAS_COLOR = 0;
}

if ($HAS_COLOR)
{
    import Term::ANSIColor ':constants';
}
else
{
    *RESET  = sub { };
    *YELLOW = sub { };
    *RED    = sub { };
    *MAGENTA  = sub { };
    *GREEN  = sub { };
    *BLUE   = sub { };
    *WHITE  = sub { };
    *BOLD   = sub { };
}

my $RESET  = RESET()   || '';
my $YELLOW = YELLOW()  || '';
my $RED    = RED()     || '';
my $MAGENTA  = MAGENTA()   || '';
my $GREEN  = GREEN()   || '';
my $BLUE   = BLUE()    || '';
my $WHITE  = WHITE()   || '';
my $BOLD   = BOLD()    || '';

## Connect

my $dsn;

## Socket takes precedence.

$dsn ="DBI:mysql:database=$config{db};mysql_read_default_group=mytop;";

if ($config{socket} and -S $config{socket})
{
    $dsn .= "mysql_socket=$config{socket}";
}
else
{
    $dsn .= "host=$config{host};port=$config{port}";
}

if ($config{prompt})
{
    print "Password: ";
    ReadMode(2);
    chomp($config{pass} = <STDIN>);
    ReadMode(0);
    print "\n";
}

my $dbh = DBI->connect($dsn, $config{user}, $config{pass},
                       { PrintError => 0 });

if (not ref $dbh)
{
    my $Error = <<EODIE
Cannot connect to MySQL server. Please check the:

  * database you specified "$config{db}" (default is "")
  * username you specified "$config{user}" (default is "root")
  * password you specified "$config{pass}" (default is "")
  * hostname you specified "$config{host}" (default is "localhost")
  * port you specified "$config{port}" (default is 3306)
  * socket you specified "$config{socket}" (default is "")

The options my be specified on the command-line or in a ~/.mytop or
~/.my.cnf config file. See the manual (perldoc mytop) for details.

Here's the exact error from DBI. It might help you debug:

$DBI::errstr

EODIE
;

    die $Error;

}

ReadMode($RM_RESET) unless $config{batchmode};

## Get static data

my $db_version;
my $db_release;
my $have_query_cache;

my @variables = Hashes("show variables");

foreach (@variables)
{
    if ($_->{Variable_name} eq "version")
    {
	if($_->{Value} =~ m/-/)
	{
	    my @tmp_db_version = split(/-/,$_->{Value});
	    $_->{Value} = $tmp_db_version[0];
	}
        $db_version = $_->{Value};
	$db_release = int(substr($db_version, 0, 1));
        next;
    }
    if ($_->{Variable_name} eq "have_query_cache")
    {
#        if ($_->{Value} eq 'YES')
	if ($_->{Value} eq 'YES' or $_->{Value} eq 'DEMAND')  # http://freshmeat.net/users/jerjones
        {
            $have_query_cache = 1;
        }
        else
        {
            $have_query_cache = 0;
        }
        next;
    }
}

#########################################################################
##
## The main loop
##
#########################################################################

ReadMode($RM_NOBLKRD)  unless $config{batchmode};

while (1)
{
    my $key;

    if ($config{mode} eq 'qps')
    {
        GetQPS();
        $key = ReadKey(1);

        next unless $key;

        if ($key =~ /t/i)
        {
            $config{mode} = 'top';
        }
        if ($key =~ /q/)
        {
            cmd_q();
        }
        next;
    }
    if ($config{mode} eq 'top')
    {
        GetData();
        last if $config{batchmode};
        $key = ReadKey($config{delay});
        next unless $key;
    }
    elsif ($config{mode} eq 'cmd')
    {
        GetCmdSummary();
        last if $config{batchmode};
        $key = ReadKey($config{delay});
        next unless $key;
    }
    elsif ($config{mode} eq 'innodb')
    {
        GetInnoDBStatus();
        last if $config{batchmode};
        $key = ReadKey($config{delay});
        next unless $key;
    }
    elsif ($config{mode} eq 'status')
    {
        GetShowStatus();
        last if $config{batchmode};
        $key = ReadKey($config{delay});
        next unless $key;
    }

    ##
    ## keystroke command processing (if we get this far)
    ##

    if ($key eq '!')
    {
        Execute("stop slave");
	Execute("set global sql_slave_skip_counter=1");
	Execute("start slave");
    }

    # t - top

    if ($key =~ /t/i)
    {
        $config{mode} = 'top';
    }

    ## q - quit

    if ($key eq 'q')
    {
        cmd_q();
    }

    if ($key eq 'D')
    {
        require Data::Dumper;
        print Data::Dumper::Dumper([\%config]);
        ReadKey(0);
    }

    ## l - change long running hightling

    if ($key eq 'l')
    {
        cmd_l();
        next;
    }

    ## m - mode swtich to qps

    if ($key eq 'm')
    {
        $config{mode} = 'qps';
        Clear() unless $config{batchmode};
	print "Queries Per Second\n";
        next;
    }

    ## c - mode swtich to command summary

    if ($key eq 'c')
    {
        $config{mode} = 'cmd';
        Clear() unless $config{batchmode};
       	print "Command Summary\n"; 
	next;
    }

    ## C - change Color on and off

    if ($key eq 'C')
    {
	if ( $HAS_COLOR ) 
        {
	    $HAS_COLOR = 0;
	}
	else
	{
	    $HAS_COLOR = 1;
	}
    }

    ## s - seconds of delay

    if ($key eq 's')
    {
        cmd_s();
        next;
    }

    if ($key eq 'S')
    {
	cmd_S();
	next;
    }

    ## R - resolve hostnames
    if ($key eq 'R')
    {
        if ($config{resolve})
        {
            $config{resolve} = 0;
        }
        else
        {
            $config{resolve} = 1;
        }
    }

    ## t - username based filter

    if ($key eq 't')
    {
        ReadMode($RM_RESET);
        print RED(), "Which state (blank for all, /.../ for regex): ", RESET();
        $config{filter_state} = StringOrRegex(ReadLine(0));
        ReadMode($RM_NOBLKRD);
        next;
    }

    ## u - username based filter

    if ($key eq 'u')
    {
        ReadMode($RM_RESET);
        print RED(), "Which user (blank for all, /.../ for regex): ", RESET();
        $config{filter_user} = StringOrRegex(ReadLine(0));
        ReadMode($RM_NOBLKRD);
        next;
    }

    ## d - database name based filter

    if ($key eq 'd')
    {
        ReadMode($RM_RESET);
        print RED(), "Which database (blank for all, /.../ for regex): ",
            RESET();
        $config{filter_db} = StringOrRegex(ReadLine(0));
        ReadMode($RM_NOBLKRD);
        next;
    }

    ## h - hostname based filter

    if ($key eq 'h')
    {
        ReadMode($RM_RESET);
        print RED(), "Which hostname (blank for all, /.../ for regex): ",
            RESET();
        $config{filter_host} = StringOrRegex(ReadLine(0));
        ReadMode($RM_NOBLKRD);
        next;
    }

    ## E - Show full Replication Error

    if ($key eq 'E')
    {
	my($data) = Hashes('SHOW SLAVE STATUS');
	Clear();
	print "Error is: $data->{Last_Error}\n";
        print RED(), "-- paused. press any key to resume --", RESET();
	ReadKey(0);
	next;
    }
    ## F - remove all filters

    if ($key eq 'F')
    {
        $config{filter_host}  = qr/.?/;
        $config{filter_db}    = qr/.?/;
        $config{filter_user}  = qr/.?/;
        $config{filter_state} = qr/.?/;
        print RED(), "-- display unfiltered --", RESET();
        sleep 1;
        next;
    }

    ## p - pause

    if ($key eq 'p')
    {
        print RED(), "-- paused. press any key to resume --", RESET();
        ReadKey(0);
        next;
    }

    ## i - idle toggle

    if ($key =~ /i/)
    {
        if ($config{idle})
        {
            $config{idle} = 0;
            $config{sort} = 1;
            print RED(), "-- idle (sleeping) processed filtered --", RESET();
            sleep 1;
        }
        else
        {
            $config{idle} = 1;
            $config{sort} = 0;
            print RED(), "-- idle (sleeping) processed unfiltered --", RESET();
            sleep 1;
        }
    }

    ## I - InnoDB status

    if ($key =~ 'I')
    {
        $config{mode} = 'innodb';
        Clear() unless $config{batchmode};
	print "InnoDB Status\n";
        next;
    }

    ## o - sort order

    if ($key =~ /o/)
    {
        if ($config{sort})
        {
            $config{sort} = 0;
            print RED(), "-- sort order reversed --", RESET();
            sleep 1;
        }
        else
        {
            $config{sort} = 1;
            print RED(), "-- sort order reversed --", RESET();
            sleep 1;
        }
    }

    ## ? - help

    if ($key eq '?')
    {
        Clear();
        PrintHelp();
        ReadKey(0);
        next;
    }

    ## k - kill

    if ($key eq 'k')
    {
        ReadMode($RM_RESET);

        print RED(), "Thread id to kill: ", RESET();
        my $id = ReadLine(0);

        $id =~ s/\s//g;

        if ($id =~ /^\d+$/)
        {
            Execute("KILL $id");
        }
        else
        {
            print RED(), "-- invalid thread id --", RESET();
            sleep 1;
        }

        ReadMode($RM_NOBLKRD);
        next;
    }

    ## K - kill based on a username
    if ($key =~ /K/)
    {
        ReadMode($RM_RESET);

        print RED(), "User to kill: ", RESET();
        my $user = ReadLine(0);

        $user =~ s/\s//g;

        if ($user =~ /^\S+$/)
        {
            for my $pid (keys %ucache)
            {
                next unless $ucache{$pid} eq $user;
                Execute("KILL $pid");
                select(undef, undef, undef, 0.2);
            }
        }
        else
        {
            print RED(), "-- invalid thread id --", RESET();
            sleep 1;
        }

        ReadMode($RM_NOBLKRD);
    }

    ## f - full info

    if ($key =~ /f/)
    {
        ReadMode($RM_RESET);
        print RED(), "Full query for which thread id: ", RESET();
        my $id = ReadLine(0);
        chomp $id;
        FullQueryInfo($id);
        ReadMode($RM_NOBLKRD);
        print RED(), "-- paused. press any key to resume or (e) to explain --",
            RESET();
        my $key = ReadKey(0);

        if ($key eq 'e')
        {
            Explain($id);
            print RED(), "-- paused. press any key to resume --", RESET();
            ReadKey(0);
        }

        next;
    }

    ## e - explain

    if ($key =~ /e/)
    {
        ReadMode($RM_RESET);
        print RED(), "Explain which query (id): ", RESET();
        my $id = ReadLine(0);
        chomp $id;
        Explain($id);
        ReadMode($RM_NOBLKRD);
        print RED(), "-- paused. press any key to resume --", RESET();
        ReadKey(0);
        next;
    }

    ## r - reset status counters

    if ($key =~ /r/)
    {
        Execute("FLUSH STATUS");
        print RED(), "-- counters reset --", RESET();
        sleep 1;
        next;
    }

    ## H - header toggle

    if ($key eq 'H')
    {
        if ($config{header})
        {
            $config{header} = 0;
        }
        else
        {
            $config{header}++;
        }
    }

    ## # - magic debug key

    if ($key eq '#')
    {
        $debug = 1;
    }

    if ($key eq 'V')
    {
        GetShowVariables();
        print RED(), "-- paused. press any key to resume --", RESET();
        ReadKey(0);
    }

    if ($key eq 'S')
    {
        $config{mode} = 'status';
    }
}

ReadMode($RM_RESET) unless $config{batchmode};

exit;

#######################################################################

sub Clear()
{
    if (not $WIN)
    {
        print "$CLEAR"
    }
    else
    {
        print "\n" x 90; ## dumb hack for now. Anyone know how to
                         ## clear the screen in dos window on a Win32
                         ## system??
    }
}

my $last_time;

sub GetData()
{
    ## Get terminal info
    my $now_time;
    %qcache = ();  ## recycle memory
    %dbcache = ();

    my ($width, $height, $wpx, $hpx, $lines_left);

    if (not $config{batchmode})
    {
        ($width, $height, $wpx, $hpx) = GetTerminalSize();
        $lines_left = $height - 2;
    }
    else
    {
        $height = 999_999;     ## I hope you don't have more than that!
        $lines_left = 999_999;
        $width = 80;
    }

    ##
    ## Header stuff.
    ##
    if ($config{header})
    {
        my @recs = "";
        if ( $db_release > 4 ) 
	{
            @recs = Hashes("show global status");
	} 
	else 
	{
           @recs = Hashes("show status");
	}

        ## if the server died or we lost connectivity
        if (not @recs)
        {
            ReadMode($RM_RESET);
            exit 1;
        }

        ## get high-res or low-res time
        my ($t_delta);

        if ($HAS_TIME)
        {
            $now_time = Time::HiRes::gettimeofday();
        }
        else
        {
            $now_time = time;
        }

        if ($last_time and $last_time != $now_time)
        {
          $t_delta = $now_time - $last_time;
        }

        %OLD_STATUS = %STATUS;

        foreach my $ref (@recs)
        {
            my $key = $ref->{Variable_name};
            my $val = $ref->{Value};

            $STATUS{$key} = $val;
        }

        ## Compute Key Cache Hit Stats

        $STATUS{Key_read_requests} ||= 1; ## can't divide by zero next

        my $cache_hits_percent = (100-($STATUS{Key_reads}/$STATUS{Key_read_requests}) * 100);
        $cache_hits_percent = sprintf("%2.2f",$cache_hits_percent);

        ## Query Cache info for <= Ver. 4.1
        ##
        ## mysql> show status like 'qcache%';
        ## +-------------------------+----------+
        ## | Variable_name           | Value    |
        ## +-------------------------+----------+
        ## | Qcache_queries_in_cache | 81       |
        ## | Qcache_inserts          | 4961668  |
        ## | Qcache_hits             | 1374170  |
        ## | Qcache_not_cached       | 5656249  |
        ## | Qcache_free_memory      | 33164800 |
        ## | Qcache_free_blocks      | 2        |
        ## | Qcache_total_blocks     | 168      |
        ## +-------------------------+----------+
	##
        ## Query Cache info for => Ver. 5.0
        ##
        ## mysql> show status like 'qcache%';
        ## +-------------------------+------------+
        ## | Variable_name           | Value      |
        ## +-------------------------+------------+
        ## | Qcache_free_blocks      | 37652      |
        ## | Qcache_free_memory      | 110289712  |
        ## | Qcache_hits             | 1460617356 |
        ## | Qcache_inserts          | 390563495  |
        ## | Qcache_lowmem_prunes    | 6414172    |
        ## | Qcache_not_cached       | 93002420   |
        ## | Qcache_queries_in_cache | 66558      |
        ## | Qcache_total_blocks     | 192031     |
        ## +-------------------------+------------+

        my $query_cache_hits             = 0;
        my $query_cache_hits_per_sec     = 0;
        my $now_query_cache_hits_per_sec = 0;

        if ($have_query_cache)
        {
            $query_cache_hits = $STATUS{Qcache_hits};
            $query_cache_hits_per_sec = $STATUS{Qcache_hits} / $STATUS{Uptime};

            if (defined $last_time and $last_time != $now_time)
            {
                my $q_delta = $STATUS{Qcache_hits} - $OLD_STATUS{Qcache_hits};
                $now_query_cache_hits_per_sec = sprintf "%.2f", $q_delta / $t_delta;
            }
        }

	open L, "</proc/loadavg";
	my $l = <L>;
	close L;
	chomp $l;

        $last_time = $now_time;

        ## Server Uptime in meaningful terms...

        my $time         = $STATUS{Uptime};
        my ($d,$h,$m,$s) = (0, 0, 0, 0);

        $d += int($time / (60*60*24)); $time -= $d * (60*60*24);
        $h += int($time / (60*60));    $time -= $h * (60*60);
        $m += int($time / (60));       $time -= $m * (60);
        $s += int($time);

        my $uptime = sprintf("%d+%02d:%02d:%02d", $d, $h, $m, $s);

        ## Queries per second...

        my $avg_queries_per_sec  = sprintf("%.2f", $STATUS{Questions} / $STATUS{Uptime});
        my $num_queries          = $STATUS{Questions};

        my @t = localtime(time);

        my $current_time = sprintf "[%02d:%02d:%02d]", $t[2], $t[1], $t[0];

        my $host_width = 80;
        my $up_width   = $width - $host_width;

        Clear() unless $config{batchmode};
        print RESET();

        printf "%-${host_width}s%${up_width}s\n",
               "MySQL on $config{host} ($db_version)",
               "load $l up $uptime $current_time";
        $lines_left--;


        printf " Queries: %-7s  qps: %4.0f Slow: %7s         Se/In/Up/De(%%):    %02.0f/%02.0f/%02.0f/%02.0f \n",
               make_short( $STATUS{Questions} ),  # q total
               $STATUS{Questions} / $STATUS{Uptime},  # qps, average
               make_short( $STATUS{Slow_queries} ),    # slow

               # hmm. a Qcache hit is really a select and should be counted.
               100 * ($STATUS{Com_select} + ($STATUS{Qcache_hits}||0) )    / $STATUS{Questions},
               100 * ($STATUS{Com_insert} +  $STATUS{Com_replace} ) / $STATUS{Questions},
               100 * ($STATUS{Com_update} )  / $STATUS{Questions},
               100 * $STATUS{Com_delete} / $STATUS{Questions};

        $lines_left--;

        if ($t_delta)
        {
          my $q_diff = ( $STATUS{Questions} - $OLD_STATUS{Questions} );
#          print("q_diff: $STATUS{Questions} - $OLD_STATUS{Questions}  / $t_delta = $q_diff\n");

          printf(" Sorts: %6.0f qps now: %4.0f Slow qps: %3.1f  Threads: %4.0f (%4.0f/%4.0f) %02.0f/%02.0f/%02.0f/%02.0f \n",
		 ( $STATUS{Sort_rows} - $OLD_STATUS{Sort_rows} ) / $t_delta, 
                 ( $STATUS{Questions} - $OLD_STATUS{Questions} ) / $t_delta,
                 ( # slow now (qps)
                  ($STATUS{Slow_queries} ) ?
                  ( $STATUS{Slow_queries} - $OLD_STATUS{Slow_queries} ) / $t_delta :
                  0
                 ),
                 $STATUS{Threads_connected},
                 $STATUS{Threads_running},
                 $STATUS{Threads_cached},

                 (100 * ($STATUS{Com_select} - $OLD_STATUS{Com_select} + 
                         ($STATUS{Qcache_hits}||0) - ($OLD_STATUS{Qcache_hits}||0)
                        ) ) / ($q_diff ),
                 (100 * ($STATUS{Com_insert} - $OLD_STATUS{Com_insert} +
                         $STATUS{Com_replace} - $OLD_STATUS{Com_replace}
                        ) ) / ($q_diff ),
                 (100 * ($STATUS{Com_update} - $OLD_STATUS{Com_update}) ) / ($q_diff ),
                 (100 * ($STATUS{Com_delete} - $OLD_STATUS{Com_delete}) ) / ($q_diff ),
                 );
        }
        else
        {
            print "\n";
        }
        $lines_left--;

        if ($have_query_cache and $STATUS{Com_select} and $query_cache_hits)
        {
          printf(" Cache Hits: %-5s Hits/s: %4.1f Hits now: %5.1f  Ratio: ",
                 make_short($STATUS{Qcache_hits}),        # cache hits
                 $STATUS{Qcache_hits} / $STATUS{Uptime}, # hits / sec
                 ($t_delta) ?  ($STATUS{Qcache_hits} - $OLD_STATUS{Qcache_hits}) / $t_delta : 0,  # Hits Now
                 );

          my($Ratio) =  100 * ($STATUS{Qcache_hits})  / ($STATUS{Qcache_hits} + $STATUS{Com_select} );
          if ($HAS_COLOR)
          {
                print YELLOW() if ($Ratio < 80.0);
                print RED() if ($Ratio < 50.0);
                print MAGENTA() if ($Ratio < 20.0);
          }
          printf("%4.1f%%$/",$Ratio);
          if ($HAS_COLOR)
          {
                print RESET();
          }

          print " Ratio now: ";
          my($Ratio_now) = ($t_delta) ?   # ratio now
                 100 * ($STATUS{Qcache_hits} - $OLD_STATUS{Qcache_hits} ) /
                 ( ($STATUS{Com_select} + $STATUS{Qcache_hits} -
                    ($OLD_STATUS{Qcache_hits} + $OLD_STATUS{Com_select})
                   ) || 1) : 0;
          if ($HAS_COLOR)
          {
                print GREEN() if ($Ratio_now >= 80.0);
                print YELLOW() if ($Ratio_now < 80.0);
                print RED() if ($Ratio_now < 50.0);
                print MAGENTA() if ($Ratio_now < 20.0);
          }
          printf("%4.1f%% \n",$Ratio_now);
          if ($HAS_COLOR)
          {
                print RESET();
          }
	  $lines_left--;
        }


        printf(" Key Efficiency: %2.1f%%  Bps in/out: %5s/%5s   ",
               $cache_hits_percent,
               make_short($STATUS{Bytes_received} / $STATUS{Uptime} ),
               make_short($STATUS{Bytes_sent} / $STATUS{Uptime}));
        printf("Now in/out: %5s/%5s",
               make_short(($STATUS{Bytes_received} - $OLD_STATUS{Bytes_received}) / $t_delta ),
               make_short(($STATUS{Bytes_sent} - $OLD_STATUS{Bytes_sent}) / $t_delta ))
          if ($t_delta);
        print "\n";

        $lines_left--;

        my($read_only) = Hashes('show global variables like "read_only"');
        if ($read_only->{Value} ne "OFF")
        {
            print RED() if ($HAS_COLOR) ;
            print " ReadOnly";
	    RESET() if ($HAS_COLOR);
        }

	my($data) = Hashes('SHOW SLAVE STATUS');
	if (defined($data->{Master_Host}))
        {
	    if (defined($data->{Seconds_Behind_Master}))
	    {
                if ($HAS_COLOR) {
	  	    print GREEN();
		    print YELLOW() if ($data->{Seconds_Behind_Master}  >  60);
		    print MAGENTA() if ($data->{Seconds_Behind_Master} > 360);
	        }
	    }
	    print " Replication ";
	    print "IO:$data->{Slave_IO_Running} ";
 	    print "SQL:$data->{Slave_SQL_Running} ";
	    print RESET() if ($HAS_COLOR);

 	    if (defined($data->{Seconds_Behind_Master}))
	    {
        	if ($HAS_COLOR) {
			print GREEN();
			print YELLOW() if ($data->{Seconds_Behind_Master}  >  60);
			print MAGENTA() if ($data->{Seconds_Behind_Master} > 360);
		}
		print "Delay: $data->{Seconds_Behind_Master} sec.";
	    } else {
	        my $free = $width - 45;
		my $Err = substr $data->{Last_Error},0 ,$free;
	        printf(" ERR: %-${free}s", $Err) if ( $Err ne "" );
	    }
	    print WHITE() if ($HAS_COLOR);
	    print "\n";
	    $lines_left--;
	}
	print "\n";
    }

    if (not $config{batchmode} and not $config{header})
    {
        Clear();
        print RESET();
    }

    ##
    ## Threads
    ##

    #my $sz = $width - 52;
    my @sz   = (9, 9, 15, 10, 10, 6, 8);
    my $used = scalar(@sz) + Sum(@sz);
    my $free = $width - $used;

    print BOLD() if ($HAS_COLOR);

    printf "%9s %9s %15s %10s %10s %6s %8s %-${free}s\n",
        'Id','User','Host/IP','DB','Time', 'Cmd', 'State', 'Query';

    print RESET() if ($HAS_COLOR);

    ##      Id User Host DB
    printf "%9s %9s %15s %10s %10s %6s %8s %-${free}s\n",
        '--','----','-------','--','----', '---', '-----', '----------';

    $lines_left -= 2;

    my $proc_cmd = "show full processlist";

    my @data = Hashes($proc_cmd);

    foreach my $thread (@data)
    {
        last if not $lines_left;

        ## Drop Domain Name, unless it looks like an IP address.  If
        ## it's an IP, we'll strip the port number because it's rarely
        ## interesting.

        my $is_ip = 0;

        if ($thread->{Host} =~ /^(\d{1,3}\.){3}(\d{1,3})(:\d+)?$/)
        {
            $thread->{Host} =~ s/:.*$//;
            $is_ip = 1;
        }
        else
        {
            $thread->{Host} =~ s/^([^.]+).*/$1/;
        }

        ## Otherwise, look up the IP (if resolve is set) and strip the
        ## name
        if ($is_ip and $config{resolve})
        {
            $thread->{Host} =~ s/:\d+$//;
#	    my $host = $thread->{Host};
	    my $host = gethostbyaddr(inet_aton($thread->{Host}), AF_INET);
#            $host =~ s/^([^.]+).*/$1/;
	    if ($host) 
	    {
		$host =~ s/^([^.]+).*/$1/;
		$thread->{Host} = $host;
	    }
            $thread->{Host} = $host;
        }

        ## Fix possible undefs

        $thread->{db}      ||= '';
        $thread->{Info}    ||= '';
        $thread->{Time}    ||= 0 ;
        $thread->{Id}      ||= 0 ;
        $thread->{User}    ||= '';
        $thread->{Command} ||= '';
        $thread->{Host}    ||= '';
	$thread->{State}   ||= "";

	## alter double hyphen comments so they don't break 
	## the query when newlines are removed - http://freshmeat.net/users/jerjones
	$thread->{Info} =~ s~\s--(.*)$~ /* $1 */ ~mg; 

        ## Normalize spaces -- mostly disabled for now.  This can
        ## break EXPLAIN if you try to explain a mangled query.  It
        ## may be re-enabled later as an option.

        if (1)
        {
	    ## collapse newlines and carriage returns and whitespaces
            $thread->{Info} =~ s/[\n\r\s]+/ /g;

	    # control symbols
	    $thread->{Info} =~ s/[[:cntrl:]]/?/g;
        }

	## leading and trailing space removal
        $thread->{Info} =~ s/^\s+//;
        $thread->{Info} =~ s/\s+$//;

        ## stow it in the cache

        $qcache{$thread->{Id}}  = $thread->{Info};
        $dbcache{$thread->{Id}} = $thread->{db};
        $ucache{$thread->{Id}}  = $thread->{User};

    }

    ## Sort by idle time (closest thing to CPU usage I can think of).

    my @sorted;

    if (not $config{sort})
    {
        @sorted = sort { $a->{Time} <=> $b->{Time} } @data
    }
    else
    {
        @sorted = sort { $b->{Time} <=> $a->{Time} } @data
    }

    foreach my $thread (@sorted)
    {
        # Check to see if we can skip out.  We skip out if we know the
        # given line doesn't match.

        next if (($thread->{Command} eq "Sleep")
                 and
                 (not $config{idle}));

        next if (($thread->{Command} eq "Binlog Dump")
                 and
                 (not $config{idle}));

        next if (($thread->{Command} eq "Daemon")
                 and
                 (not $config{idle}));

        next if ($thread->{User}  !~ $config{filter_user});
        next if ($thread->{db}    !~ $config{filter_db});
        next if ($thread->{Host}  !~ $config{filter_host});
        next if ($thread->{State} !~ $config{filter_state});

        $thread->{State} = trim(sprintf("%8.8s",$thread->{State}));

        # Otherwise, print.

        my $smInfo;

        if ($thread->{Info})
        {
            $smInfo = substr $thread->{Info}, 0, $free;
        }
#        if ($thread->{State})
#        {
#            $smInfo = substr $thread->{State}, 0, $free;
#        }
        else
        {
            $smInfo = "";
        }

        if ($HAS_COLOR)
        {
            print YELLOW() if $thread->{Command} eq 'Query';
            print WHITE()  if $thread->{Command} eq 'Sleep';
            print GREEN()  if $thread->{Command} eq 'Connect';
            print BOLD() if $thread->{Time} > $config{slow};
	    print MAGENTA() if $thread->{Time} > $config{long};
        }

        printf "%9d %9.9s %15.15s %10.10s %10d %6.6s %8.8s %-${free}.${free}s\n",
            $thread->{Id}, $thread->{User}, $thread->{Host}, $thread->{db},
            $thread->{Time}, $thread->{Command}, $thread->{State}, $smInfo;

        print RESET() if $HAS_COLOR;

        $lines_left--;

        last if $lines_left == 0;

    }

}

###########################################################################

my $questions;

sub GetQPS()
{
    my($data) = Hashes('SHOW STATUS LIKE "Questions"');
    my $num   = $data->{Value};

    if (not defined $questions) ## first time?
    {
        $questions = $num;
        return;
    }

    my $qps = $num - $questions;
    $questions = $num;
    print "$qps\n";
}

###########################################################################

sub GetQcacheSummary()
{
}

###########################################################################

sub GetInnoDBStatus()
{
    if (not $config{pager})
    {
        if (not $config{pager} = FindProg('less'))
        {
            $config{pager} = FindProg('more');
        }
    }

    my @data = Hashes("SHOW ENGINE INNODB STATUS");

    open P, "|$config{pager}" or die "$!";
    print keys %{$data[0]};
    print $data[0]->{Status},"\n";
    close P;
}

###########################################################################

my %prev_data;

sub GetCmdSummary()
{
    my ($width, $height, $wpx, $hpx, $lines_left);

    if (not $config{batchmode})
    {
        ($width, $height, $wpx, $hpx) = GetTerminalSize();

        $lines_left = $height - 2;
    }
    else
    {
        $height = 999_999;     ## I hope you don't have more than that!
        $lines_left = 999_999;
        $width = 80;
    }

    # Variable_name and Value pairs come back...
    my @data = Hashes("SHOW STATUS LIKE 'Com_%'");
    my %cmd_data;
    my %cmd_delta;
    my %cmd_pct;
    my %cmd_delta_pct;
    my $total;
    my $delta_total;

    for my $item (@data)
    {
        next unless $item->{Value};
        $item->{Variable_name} =~ s/^Com_//;
        $item->{Variable_name} =~ s/_/ /g;
        $cmd_data{$item->{Variable_name}} = $item->{Value};
        $total += $item->{Value};
    }

    ## Populate other stats

    for my $item (keys %cmd_data)
    {
        $cmd_delta{$item} = $cmd_data{$item} -
            ($prev_data{$item} || $cmd_data{$item} - 1);

        $delta_total += $cmd_delta{$item};

        $cmd_pct{$item}  = int(($cmd_data{$item} / $total) * 100);
    }

    for my $item (keys %cmd_data)
    {
        $cmd_delta_pct{$item}  = int(($cmd_delta{$item} / $delta_total) * 100);
    }


    ## Display

    Clear() unless $config{batchmode};
    print RESET();
    printf "%18s %10s %4s  | %5s %4s\n", 'Command', 'Total', 'Pct', 'Last', 'Pct';
    printf "%18s %10s %4s  | %5s %4s\n", '-------', '-----', '---', '----', '---';
    $lines_left -= 2;

    for my $item (sort { $cmd_data{$b} <=> $cmd_data{$a} } keys %cmd_data)
    {
        printf "%18s %10d %4s  | %5d %4s\n",
            $item,
            $cmd_data{$item},
            $cmd_pct{$item} . "%",
            $cmd_delta{$item},
            $cmd_delta_pct{$item} . "%";

        last if not $lines_left;
        $lines_left -= 1;
    }

    %prev_data = %cmd_data;
}

###########################################################################

sub GetShowVariables()
{
    if (not $config{pager})
    {
        if (not $config{pager} = FindProg('less'))
        {
            $config{pager} = FindProg('more');
        }
    }

    my @rows = Hashes("SHOW VARIABLES");

    open P, "|$config{pager}" or die "$!";

    for my $row (@rows)
    {
        my $name  = $row->{Variable_name};
        my $value = $row->{Value};
        printf P "%32s: %s\n", $name, $value;
    }

    close P;
}

###########################################################################

sub GetShowStatus()
{
    Clear() unless $config{batchmode};
    my @rows = Hashes("SHOW STATUS");

    printf "%32s  %10s %10s\n", 'Counter', 'Total', 'Change';
    printf "%32s  %10s %10s\n", '-------', '-----', '------';

    for my $row (@rows)
    {
        my $name  = $row->{Variable_name};
        my $value = $row->{Value};
        my $old   = $statcache{$name};
        my $delta = 0;

        next if $name  =~ m/^Com_/;      ## skip Com_ stats
        next if $value =~ m/^[^0-9]*$/;  ## skip non-numeric

        ## TODO: if Qcache is off, we should skip Qcache_ values

        if ($HAS_COLOR and defined $old and $old =~ /^\d/)
        {
            if ($value > $old)
            {
                print YELLOW();
                $delta = $value - $old;
            }
            elsif ($value < $old)
            {
                print RED();
                $delta = $value - $old;
            }

            if (not $config{idle} and $value == $old)
            {
                # filter unchanging stats, maybe
                print RESET();
                next;
            }
        }

        printf "%32s: %10s %10s\n", $name, $value, $delta;
        print RESET() if $HAS_COLOR;

        $statcache{$name} = $value;
    }

}

###########################################################################

sub FullQueryInfo($)
{
    my $id = shift;

    if (not exists $qcache{$id} or not defined $qcache{$id})
    {
        print "*** Invalid id. ***\n";
        return;
    }

    my $sql = $qcache{$id};
    print $CLEAR;
    print "Thread $id was executing following query:\n\n";
    print YELLOW(), $sql,"\n\n", RESET();
}

###########################################################################

sub Explain($)
{
    my $id  = shift;

    if (not exists $qcache{$id} or not defined $qcache{$id})
    {
        print "*** Invalid id. ***\n";
        return;
    }

    my $sql = $qcache{$id};
    my $db  = $dbcache{$id};

    Execute("USE $db");
    my @info = Hashes("EXPLAIN $sql");
    print $CLEAR;
    print "EXPLAIN $sql:\n\n";
    PrintTable(@info);
}

###########################################################################

sub PrintTable(@)
{
    my $cnt = 1;
    my @cols = qw(table type possible_keys key key_len ref rows Extra);

    for my $row (@_)
    {
        print "*** row $cnt ***\n";
        for my $key (@cols)
        {
            my $val = $row->{$key} || 'NULL';
            printf "%15s:  %s\n", $key, $val;
        }
        $cnt++;
    }
}

###########################################################################

sub StringOrRegex($)
{
    my $input = shift;
    chomp $input;
    if (defined $input)
    {
        # regex, strip /.../ and use via qr//
        if ($input =~ m{^/} and $input =~ m{/$})
        {
            $input =~ s{^/}{} if $config{filter_user};
            $input =~ s{/$}{} if $config{filter_user};
            $input =  qr/$input/;
        }


        # reset to match anything
        elsif ($input eq '')
        {
            $input = qr/.*/;
        }

        # string, build a simple regex
        else
        {
            $input =  '^' . $input . '$';
            $input = qr/$input/;
        }
    }

    # reset to match anything
    else
    {
        $input = qr/.*/;
    }
    return $input;
}

###########################################################################

sub cmd_l
{
    ReadMode($RM_RESET);

    print RED(), "Seconds for long queries: ", RESET();
    my $secs = ReadLine(0);

    if ($secs =~ /^\s*(\d+)/)
    {
        $config{long} = $1;
        if ($config{long} < 1)
        {
            $config{long} = 1;
        }
    }
    ReadMode($RM_NOBLKRD);
}

sub cmd_s
{
    ReadMode($RM_RESET);

    print RED(), "Seconds of Delay: ", RESET();
    my $secs = ReadLine(0);

    if ($secs =~ /^\s*(\d+)/)
    {
        $config{delay} = $1;
        if ($config{delay} < 1)
        {
            $config{delay} = 1;
        }
    }
    ReadMode($RM_NOBLKRD);
}

sub cmd_S
{
    ReadMode($RM_RESET);

    print RED(), "Seconds for Slow queries: ", RESET();
    my $secs = ReadLine(0);

    if ($secs =~ /^\s*(\d+)/)
    {
        $config{slow} = $1;
        if ($config{slow} < 1)
        {
            $config{slow} = 1;
        }
    }
    ReadMode($RM_NOBLKRD);
}

sub cmd_q
{
    ReadMode($RM_RESET);
    print "\n";
    exit;
}

sub trim($)
{
	my $string = shift;
	$string =~ s/^\s+//;
	$string =~ s/\s+$//;
	return $string;
}

###########################################################################

sub PrintHelp()
{
    my $help = qq[
Help for mytop version $main::VERSION by Jeremy D. Zawodny <${YELLOW}Jeremy\@Zawodny.com${RESET}>
 with updates by Mark Grennan <${YELLOW}mark\@grennan.com${RESET}>

  ? - display this screen
  # - toggle short/long numbers (not yet implemented)
  c - command summary view (based on Com_* counters)
  C - turn color on and off
  d - show only a specific database
  e - explain the query that a thread is running
  E - display current replication error
  f - show full query info for a given thread
  F - unfilter the display
  h - show only a specifc host's connections
  H - toggle the mytop header
  i - toggle the display of idle (sleeping) threads
  I - show innodb status
  k - kill a thread
  p - pause the display
  l - change long running queries hightlighing
  m - switch [mode] to qps (queries/sec) scrolling view
  o - reverse the sort order (toggle)
  q - quit
  r - reset the status counters (via FLUSH STATUS on your server)
  R - change reverse IP lookup
  s - change the delay between screen updates
  S - change slow query hightlighting
  t - switch to thread view (default)
  u - show only a specific user
  : - enter a command (not yet implemented)
  ! - Skip an error that has stopped replications (at your own risk)

${GREEN}http://jeremy.zawodny.com/mysql/mytop/${RESET}
${GREEN}http://www.mysqlfanboy.com/mytop-3/${RESET}
];

    print $help;
}

sub Sum(@)
{
    my $sum;
    while (my $val = shift @_) { $sum += $val; }
    return $sum;
}

## A useful routine from perlfaq

sub commify($)
{
    local $_  = shift;
    return 0 unless defined $_;
    1 while s/^([-+]?\d+)(\d{3})/$1,$2/;
    return $_;
}

## Compact numeric representation (10,000 -> 10.0k)

sub make_short($)
{
    my $number = shift;
    return commify($number) if $config{long_nums};
    my $n = 0;
    while ($number > 1_025) { $number /= 1024; $n++; };
    return sprintf "%.1f%s", $number, ('','k','M','G', 'T')[$n];
}



## Run a query and return the records has an array of hashes.

sub Hashes($)
{
    my $sql = shift;
    my @records;

    if (my $sth = Execute($sql))
    {
	while (my $ref = $sth->fetchrow_hashref)
        {
            print "record\n" if $debug;
	    push @records, $ref;
	}
    }
    return @records;
}

## Execute an SQL query and return the statement handle.

sub Execute($)
{
    my $sql = shift;

    $sql and $sql =~ s/\n/ /sg;

    my $sth = $dbh->prepare($sql);

    if (not $sth) { ReadMode($RM_RESET); die $DBI::errstr; }

    my $ReturnCode = $sth->execute;

    if (not $ReturnCode)
    {
        if ($debug)
        {
            print "query failed\n";
            sleep 10;
        }
        return undef;
    }

    return $sth;
}

sub FindProg($)
{
    my $prog  = shift;
    my $found = undef;
    my @search_dirs = ("/bin", "/usr/bin", "/usr/sbin",
                       "/usr/local/bin", "/usr/local/sbin");

    for (@search_dirs)
    {
        my $loc = "$_/$prog";
        if (-e $loc)
        {
            $found = $loc;
            last;
        }
    }
    return $found;
}

=pod

=head1 SYNOPSIS

B<mytop> [options]

=head1 AVAILABILITY

The latest version of B<mytop> is available from
http://www.mysqlfanboy.com/mytop-3/ it B<might> also be on CPAN as
well.

=head1 REQUIREMENTS

In order for B<mytop> to function properly, you must have the
following:

  * Perl 5.005 or newer
  * Config::IniFiles;
  * Getopt::Long
  * DBI and DBD::mysql
  * Term::ReadKey from CPAN

Most systems are likely to have all of those installed--except for
Term::ReadKey. You will need to pick that up from the CPAN. You can
pick up Term::ReadKey here:

    http://search.cpan.org/search?dist=TermReadKey

And you obviously need access to a MySQL server (version 3.22.x or
3.23.x) with the necessary security to run the I<SHOW PROCESSLIST> and
I<SHOW STATUS> commands.

If you are a Windows user, using ActiveState's Perl, you can use PPM
(the Perl Package Manager) to install the MySQL and Term::ReadKey
modules.

=head2 Optional Color Support

In additon, if you want a color B<mytop> (recommended), install
Term::ANSIColor from the CPAN:

    http://search.cpan.org/search?dist=ANSIColor

Once you do, B<mytop> will automatically use it. However, color is not
yet working on Windows. Patches welcome. :-)

=head2 Optional Hi-Res Timing

If you want B<mytop> to provide more accurate real-time
queries-per-second statistics, install the Time::HiRes module from
CPAN.  B<mytop> will automatically notice that you have it and use it
rather than the standard timing mechanism.

=head2 Platforms

B<mytop> is known to work on:

  * Linux (2.2.x, 2.4.x)
  * FreeBSD (2.2, 3.x, 4.x)
  * Mac OS X
  * BSDI 4.x
  * Solaris 2.x
  * Windows NT 4.x (ActivePerl)

If you find that it works on another platform, please let me
know. Given that it is all Perl code, I expect it to be rather
portable to Unix and Unix-like systems. Heck, it I<might> even work on
Win32 systems.

=head1 DESCRIPTION

Help is always welcome in improving this software. Feel free to
contact the author (see L<"AUTHOR"> below) with bug reports, fixes,
suggestions, and comments. Additionally L<"BUGS"> will provide a list
of things this software is not able to do yet.

Having said that, here are the details on how it works and what you can
do with it.

=head2 The Basics

B<mytop> was inspired by the system monitoring tool B<top>. I
routinely use B<top> on Linux, FreeBSD, and Solaris. You are likely to
notice features from each of them here.

B<mytop> will connect to a MySQL server and periodically run the
I<SHOW PROCESSLIST> and I<SHOW STATUS> commands and attempt to
summarize the information from them in a useful format.

=head2 The Display

The B<mytop> display screen is really broken into two parts. The top 4
lines (header) contain summary information about your MySQL
server. For example, you might see something like:

MySQL on localhost (4.0.13-log)                        up 1+11:13:00 [23:29:11]
 Queries: 19.3M  qps:  160 Slow:     1.0         Se/In/Up/De(%):    00/80/03/17
             qps now:  219 Slow qps: 0.0  Threads:    1 (   1/  16) 00/74/00/25
 Key Efficiency: 99.3%  Bps in/out: 30.5k/162.8   Now in/out: 32.7k/ 3.3k

The first line identifies the hostname of the server (localhost) and
the version of MySQL it is running. The right had side shows the
uptime of the MySQL server process in days+hours:minutes:seconds
format (much like FreeBSD's top) as well as the current time.

The second line displays the total number of queries the server has
processed, the average number of queries per second, the number of
slow queries, and the percentage of Select, Insert, Update, and Delete
queries.

The third real-time values. First is the number of queries per second,
then the number of slow queries, followed by query precentages (like
on the previous line).

And the fourth line displays key buffer efficiency (how often keys are
read from the buffer rather than disk) and the number of bytes that
MySQL has sent and received, both over all and in the last cycle.

You can toggle the header by hitting B<h> when running B<mytop>.

The second part of the display lists as many threads as can fit on
screen. By default they are sorted according to their idle time (least
idle first). The display looks like:

    Id     User       Host      Dbase   Time      Cmd Query or State
    --     ----       ----      -----   ----      --- --------------
    61  jzawodn  localhost      music      0    Query show processlist

As you can see, the thread id, username, host from which the user is
connecting, database to which the user is connected, number of seconds
of idle time, the command the thread is executing, and the query info
are all displayed.

Often times the query info is what you are really interested in, so it
is good to run B<mytop> in an xterm that is wider than the normal 80
columns if possible.

The thread display color-codes the threads if you have installed color
support. The current color scheme only works well in a window with a
dark (like black) background. The colors are selected according to the
C<Command> column of the display:

    Query   -  Yellow
    Sleep   -  White
    Connect -  Green
    Slow    -  Bright
    Long    -  Magenta

Those are purely arbitrary and will be customizable in a future
release. If they annoy you just start B<mytop> with the B<--nocolor>
flag or adjust your config file appropriately.

=head2 Arguments

B<mytop> handles long and short command-line arguments. Not all
options have both long and short formats, however. The long arguments
have two dashes `--'. Short arguments only have one '-'.

=over

=item B<-u> or B<--user> I<username>

Username to use when logging in to the MySQL server. Default: ``B<root>''.

=item B<-p> or B<--pass> or B<--password> I<password>

Password to use when logging in to the MySQL server. Default: none.

WARNING: This is insecure as the password is visible for anyone.
See B<--prompt> instead!

=item B<-h> or B<--host> I<hostname>[B<:>I<port>]

Hostname of the MySQL server. The hostname may be followed by an
option port number. Note that the port is specified separate from the
host when using a config file. Default: ``B<localhost>''.

=item B<--port> or B<-P> I<port>

If you're running MySQL on a non-standard port, use this to specify
the port number. Default: B<3306>.

=item B<-s> or B<--delay> I<seconds>

How long between display refreshes. Default: B<5>

=item B<-d> or B<--db> or B<--database> I<database>

Use if you'd like B<mytop> to connect to a specific database by
default. Default: none.

=item B<-b> or B<--batch> or B<--batchmode>

In batch mode, mytop runs only once, does not clear the screen, and
places no limit on the number of lines it will print. This is suitable
for running periodically (perhaps from B<cron>) to capture the
information into a file for later viewing. You might use batch mode in
a CGI script to occasionally display your MySQL server status on the
web.

Default: unset.

=item B<-S> or B<--socket> I</path/to/socket>

If you're running B<mytop> on the same host as MySQL, you may wish to
have it use the MySQL socket directly rather than a standard TCP/IP
connection. If you do,just specify one.

Note that specifying a socket will make B<mytop> ignore any host
and/or port that you might have specified. If the socket does not
exist (or the file specified is not a socket), this option will be
ignored and B<mytop> will use the hostname and port number instead.

Default: none.

=item B<--header> or B<--noheader>

Specify if you want the header to display or not. You can toggle this
with the B<h> key while B<mytop> is running.

Default: header.

=item B<--color> or B<--nocolor>

Specify if you want a color display. This has no effect if you don't
have color support available.

Default: If you have color support, B<mytop> will try color unless you
tell it not to.

=item B<-i> or B<--idle> or B<--noi> or B<--noidle>

Specify if you want idle (sleeping) threads to appear in the list. If
sleeping threads are omitted, the default sorting order is reversed so
that the longest running queries appear at the top of the list.

Default: idle.

=item B<--prompt> or B<--noprompt>

Specify if you want to be prompted to type in your database password.
This provides a little bit more security since it not only prevents
the password from viewable in a process list, but also doesn't require
the password to be stored in plain text in your C<~/.mytop> config file.
You will B<only> be prompted if a password has not been specified in
your config file or through another command line option.

Default: noprompt.

=item B<--resolve>

If you have skip-resolve set on MySQL (to keep it from doing a reverse
DNS lookup on each inbound connection), mytop can replace IP addresses
with hostnames but toggling this option.

Default: noresolve

=item B<--long> or B<--nolong>

For large numbers print all digits (e.g. 10.000) instead of using a more
compact approximation (e.g. 10.0k).

Default: nolong.

=item B<-m> or B<--mode> I<mode>

Specify initial mode B<qps>(queries/second), B<top>(overview),
B<cmd>(command summary), B<innodb>(InnoDB status) or B<status>().

Default: B<top>

=item B<--sort> or B<--nosort>

Reverse sort order from ascending to descending using Idle time.

Default: nosort.


=back

Command-line arguments will always take precedence over config file
options. That happens because the config file is read I<BEFORE> the
command-line arguments are applied.

=head2 Config File

Instead of always using bulky command-line parameters, you can also
use a config file in your home directory (C<~/.mytop>). If present,
B<mytop> will read it automatically. It is read I<before> any of your
command-line arguments are processed, so your command-line arguments
will override directives in the config file.

Here is a sample config file C<~/.mytop> which implements the defaults
described above.

  user=root
  pass=
  host=localhost
  db=test
  delay=5
  port=3306
  slow=10
  socket=
  batchmode=0
  header=1
  color=1
  idle=1
  long=120

Using a config file will help to ensure that your database password
isn't visible to users on the command-line. Just make sure that the
permissions on C<~/.mytop> are such that others cannot read it (unless
you want them to, of course).

You may have white space on either side of the C<=> in lines of the
config file.

If present, mytop will also read mysql's default config file C<~/.my.cnf>.
Values from both the [client] and [mytop] section are read, in this order.
The long options I<database> and I<password> are preferred over the short
versions I<db> and I<pass> to match mysql's syntax.
These settings take lowest precedence and will be overwritten by either
values in C<~/.mytop> or command-line options.

=head2 Shortcut Keys

The following keys perform various actions while B<mytop> is
running. Those which have not been implemented are listed as
such. They are included to give the user idea of what is coming.

=over

=item B<?>

Display help.

=item B<c>

Show "command counters" based on the Com_* values in SHOW STATUS.
This is a new feature.  Feedback welcome.

=item B<C>

Turn display color on and off. Default is on.

=item B<d>

Show only threads connected to a particular database.

=item B<f>

Given a thread id, display the entire query that thread was (and still
may be) running.

=item B<F>

Disable all filtering (host, user, and db).

=item B<h>

Only show queries from a particular host.

=item B<H>

Toggle the header display. You can also specify either C<header=0> or
C<header=1> in your config file to set the default behavior.

=item B<i>

Toggle the display of idle (sleeping) threads. If sleeping threads are
filtered, the default sorting order is reversed so that the longest
running queries appear at the top of the list.

=item B<I>

Switch to InnoDB Status mode. The output of "SHOW ENGINE INNODB STATUS"
will be displayed every cycle. In a future version, this may actually
summarize that data rather than producing raw output.

=item B<k>

Kill a thread.

=item B<m>

Toggle modes. Currently this switches from `top' mode to `qps'
(Queries Per Second Mode). In this mode, mytop will write out one
integer per second. The number written reflects the number of queries
executed by the server in the previous one second interval.

More modes may be added in the future.

=item B<o>

Reverse the default sort order.

=item B<p>

Pause display.

=item B<q>

Quit B<mytop>

=item B<r>

Reset the server's status counters via a I<FLUSH STATUS> command.

=item B<R>

Togle IP reverse lookup. Default is on.

=item B<s>

Change the sleep time (number of seconds between display refreshes).

=item B<S>

Set the number of seconds a query will need to run before it is
considered old and will be highlighted.

=item B<u>

Show only threads owned by a giver user.

=back

The B<s> key has a command-line counterpart: B<-s>.

The B<h> key has two command-line counterparts: B<--header> and
B<--noheader>.

=head1 BUGS

This is more of a BUGS + WishList.

Some performance information is not available when talking to a
version 3.22.x MySQL server. Additional information (about threads
mostly) was added to the output of I<SHOW STATUS> in MySQL 3.23.x and
B<mytop> makes use of it. If the information is not available, you
will simply see zeros where the real numbers should be.

Simply running this program will increase your overall counters (such
as the number of queries run). But you may or may not view that as a
bug.

B<mytop> consumes too much CPU time when running (verified on older
versions of Linux and FreeBSD). It's likely a problem related to
Term::ReadKey. I haven't had time to investigate yet, so B<mytop> now
automatically lowers its priority when you run it. You may also think
about running B<mytop> on another workstation instead of your database
server. However, C<mytop> on Solaris does B<not> have this problem.
Newer versions of Linux and FreeBSD seem to have fixed this.

You can't specify the maximum number of threads to list. If you have
many threads and a tall xterm, B<mytop> will always try to display as
many as it can fit.

The size of most of the columns in the display has a small maximum
width. If you have fairly long database/user/host names the display
may appear odd. I have no good idea as to how best to deal with that
yet. Suggestions are welcome.

You should be able to specify the columns you'd like to see in the
display and the order in which they appear. If you only have one
username that connects to your database, it's probably not worth
having the User column appear, for example.

=head1 AUTHOR

mytop was developed and is maintained by Jeremy D. Zawodny
(Jeremy@Zawodny.com).

If you wish to e-mail me regarding this software, B<PLEASE> subscribe
to the B<mytop> mailing list.  See the B<mytop> homepage for details.

=head1 DISCLAIMER

While I use this software in my job at Yahoo!, I am solely responsible
for it. Yahoo! does not necessarily support this software in any
way. It is merely a personal idea which happened to be very useful in
my job.

=head1 RECRUITING

If you hack Perl and grok MySQL, come work at Yahoo! Contact me for
details. Or just send me your resume. Er, unless we just had layoffs,
in which case we're not hiring. :-(

=head1 SEE ALSO

Please check the MySQL manual if you're not sure where some of the
output of B<mytop> is coming from.

=head1 COPYRIGHT

Copyright (C) 2000-2010, Jeremy D. Zawodny.

=head1 CREDITS

Fix a bug. Add a feature. See your name here!

Many thanks go to these fine folks:

=over

=item Mark Grennan (mark@grennan.com) www.linuxfangoy.com

Added updates for MySQL 5.x. Added 'S' (slow) highlighting.
Added 'C' to turn on and off Color. Added 'l' command to change
color for long running queries. Fixed a few documentation issues.
Monitors Slave status. Added color to Queue hit ratio.
Added number of rows sorted per second.
Created release 1.7.

=item Sami Ahlroos (sami@avis-net.de)

Suggested the idle/noidle stuff.

=item Jan Willamowius (jan@janhh.shnet.org)

Mirnor bug report. Documentation fixes.

=item Alex Osipov (alex@acky.net)

Long command-line options, Unix socket support.

=item Stephane Enten (tuf@grolier.fr)

Suggested batch mode.

=item Richard Ellerbrock (richarde@eskom.co.za)

Bug reports and usability suggestions.

=item William R. Mattil (wrm@newton.irngtx.tel.gte.com)

Bug report about empty passwords not working.

=item Benjamin Pflugmann (philemon@spin.de)

Suggested -P command-line flag as well as other changes.

=item Justin Mecham <justin@aspect.net>

Suggested setting $0 to `mytop'.

=item Thorsten Kunz <thorsten.kunz@de.tiscali.com>

Provided a fix for cases when we try remove the domain name from the
display even if it is actually an IP address.

=item Sasha Pachev <sasha@mysql.com>

Provided the idea of real-time queries per second in the main display.

=item Paul DuBois <paul@snake.net>

Pointed out some option-handling bugs.

=item Mike Wexler <mwexler@tias.com>

Suggested that we don't mangle (normalize) whitespace in query info by
default.

=item Mark Zweifel <markez@yahoo-inc.com>

Make the --idle command-line argument negatable.

=item Axel Schwenke <schwenke@jobpilot.de>

Noticed the inccorect formula for query cache hit percentages in
version 1.2.

=item Steven Roussey <sroussey@network54.com>

Supplied a patch to help filter binary junk in queries so that
terminals don't freak out.

=item jon r. luini <falcon@chime.com>

Supplied a patch that formed the basis for C<--prompt> support.  Sean
Leach <sleach@wiggum.com> submitted a similar patch.

=item Yogish Baliga <baliga@yahoo-inc.com>

Supplied a patch that formed the basis for C<--resolve> support.

=item Per Andreas Buer <perbu@linpro.no>

Supplied an excellent patch to tidy up the top display.  This includes
showing most values in short form, such as 10k rather than 10000.

=back

See the Changes file on the B<mytop> distribution page for more
details on what has changed.

=head1 LICENSE

B<mytop> is licensed under the GNU General Public License version
2. For the full license information, please visit
http://www.gnu.org/copyleft/gpl.html

=cut

__END__

Filemanager

Name Type Size Permission Actions
X11 Folder 0755
2to3-2.7 File 96 B 0755
7z File 39 B 0755
7za File 40 B 0755
7zr File 40 B 0755
GET File 15.84 KB 0755
HEAD File 15.84 KB 0755
NF File 963 B 0755
POST File 15.84 KB 0755
Thunar File 755.85 KB 0755
VGAuthService File 126.22 KB 0755
X File 274 B 0755
Xorg File 274 B 0755
[ File 50.18 KB 0755
aa-enabled File 22.16 KB 0755
aa-exec File 22.16 KB 0755
ab File 54.18 KB 0755
aclocal File 35.93 KB 0755
aclocal-1.15 File 35.93 KB 0755
acpi_listen File 14.27 KB 0755
add-apt-repository File 7.24 KB 0755
addpart File 22.08 KB 0755
addr2line File 30.55 KB 0755
ambiguous_words File 10.09 KB 0755
apport-bug File 2.5 KB 0755
apport-cli File 13.05 KB 0755
apport-collect File 2.5 KB 0755
apport-unpack File 1.81 KB 0755
appres File 9.99 KB 0755
apropos File 46.98 KB 0755
apt File 14.09 KB 0755
apt-add-repository File 7.24 KB 0755
apt-cache File 78.16 KB 0755
apt-cdrom File 22.16 KB 0755
apt-config File 22.09 KB 0755
apt-extracttemplates File 22.16 KB 0755
apt-ftparchive File 234.16 KB 0755
apt-get File 42.16 KB 0755
apt-key File 26.75 KB 0755
apt-mark File 42.16 KB 0755
apt-sortpkgs File 42.09 KB 0755
ar File 58.24 KB 0755
arch File 34.21 KB 0755
arping File 22 KB 4755
as File 895.98 KB 0755
aspell File 150.34 KB 0755
aspell-import File 2 KB 0755
at File 50.26 KB 6755
atobm File 13.99 KB 0755
atq File 50.26 KB 6755
atrm File 50.26 KB 6755
autoconf File 14.42 KB 0755
autoheader File 8.34 KB 0755
autom4te File 31.91 KB 0755
automake File 247.38 KB 0755
automake-1.15 File 247.38 KB 0755
automat-visualize3 File 402 B 0755
autopoint File 25.97 KB 0755
autoreconf File 20.67 KB 0755
autoscan File 16.73 KB 0755
autoupdate File 33.08 KB 0755
awk File 642.65 KB 0755
b2sum File 54.21 KB 0755
base32 File 38.18 KB 0755
base64 File 38.18 KB 0755
basename File 34.18 KB 0755
bashbug File 6.95 KB 0755
batch File 152 B 0755
bc File 90.7 KB 0755
bdftopcf File 42.12 KB 0755
bdftruncate File 9.99 KB 0755
bitmap File 98.09 KB 0755
bmtoa File 10.02 KB 0755
bootctl File 34.13 KB 0755
broadwayd File 114.08 KB 0755
browse File 24.65 KB 0755
bsd-from File 9.99 KB 0755
bsd-write File 13.99 KB 2755
busctl File 66.09 KB 0755
byobu File 8.07 KB 0755
byobu-config File 996 B 0755
byobu-ctrl-a File 4.66 KB 0755
byobu-disable File 1.26 KB 0755
byobu-disable-prompt File 1.28 KB 0755
byobu-enable File 1.15 KB 0755
byobu-enable-prompt File 1.42 KB 0755
byobu-export File 1.23 KB 0755
byobu-janitor File 5.82 KB 0755
byobu-keybindings File 1.47 KB 0755
byobu-launch File 3.21 KB 0755
byobu-launcher File 1.87 KB 0755
byobu-launcher-install File 2.4 KB 0755
byobu-launcher-uninstall File 1.52 KB 0755
byobu-layout File 3.27 KB 0755
byobu-prompt File 1.13 KB 0755
byobu-quiet File 1.38 KB 0755
byobu-reconnect-sockets File 3.22 KB 0755
byobu-screen File 8.07 KB 0755
byobu-select-backend File 1.42 KB 0755
byobu-select-profile File 6.14 KB 0755
byobu-select-session File 1012 B 0755
byobu-shell File 1.56 KB 0755
byobu-silent File 1.28 KB 0755
byobu-status File 5.87 KB 0755
byobu-status-detail File 1.18 KB 0755
byobu-tmux File 8.07 KB 0755
byobu-ugraph File 4.56 KB 0755
byobu-ulevel File 11.71 KB 0755
c++ File 1022.94 KB 0755
c++filt File 26.12 KB 0755
c89 File 428 B 0755
c89-gcc File 428 B 0755
c99 File 454 B 0755
c99-gcc File 454 B 0755
c_rehash File 6.65 KB 0755
cal File 28.79 KB 0755
calendar File 30.48 KB 0755
captoinfo File 82.11 KB 0755
catchsegv File 3.25 KB 0755
catman File 38.46 KB 0755
cautious-launcher File 853 B 0755
cc File 1022.94 KB 0755
certbot File 385 B 0755
cftp3 File 380 B 0755
cgroupfs-mount File 1.25 KB 0755
cgroupfs-umount File 620 B 0755
chacl File 13.99 KB 0755
chage File 70.13 KB 2755
chardet File 387 B 0755
chardet3 File 389 B 0755
chardetect File 387 B 0755
chardetect3 File 389 B 0755
chattr File 14 KB 0755
chcon File 62.18 KB 0755
check-language-support File 2.71 KB 0755
checkgid File 5.99 KB 0755
chfn File 74.7 KB 4755
chrt File 30.08 KB 0755
chsh File 43.48 KB 4755
cjpeg File 34.07 KB 0755
ckbcomp File 146.33 KB 0755
ckeygen3 File 386 B 0755
cksum File 34.18 KB 0755
classifier_tester File 50.23 KB 0755
clear File 10 KB 0755
clear_console File 10.07 KB 0755
cloud-id File 396 B 0755
cloud-init File 400 B 0755
cloud-init-per File 2.06 KB 0755
cmdtest File 8.16 KB 0755
cmp File 46.09 KB 0755
cntraining File 50.26 KB 0755
codepage File 13.99 KB 0755
col File 9.99 KB 0755
col1 File 963 B 0755
col2 File 963 B 0755
col3 File 963 B 0755
col4 File 963 B 0755
col5 File 963 B 0755
col6 File 963 B 0755
col7 File 963 B 0755
col8 File 963 B 0755
col9 File 963 B 0755
colcrt File 10 KB 0755
colrm File 9.99 KB 0755
column File 14.01 KB 0755
combine_lang_model File 102.16 KB 0755
combine_tessdata File 14.16 KB 0755
comm File 38.21 KB 0755
compose File 17.74 KB 0755
conch3 File 382 B 0755
containerd File 52.17 MB 0755
containerd-shim File 7.11 MB 0755
containerd-shim-runc-v1 File 9.2 MB 0755
containerd-shim-runc-v2 File 9.23 MB 0755
containerd-stress File 22.52 MB 0755
corelist File 12.53 KB 0755
cpan File 7.96 KB 0755
cpan5.26-x86_64-linux-gnu File 7.99 KB 0755
cpp File 1022.94 KB 0755
cpp-7 File 1022.94 KB 0755
cpp-8 File 1.01 MB 0755
crontab File 38.43 KB 2755
csplit File 50.21 KB 0755
ctail File 958 B 0755
ctr File 26.5 MB 0755
ctstat File 22.35 KB 0755
curl File 218.07 KB 0755
cut File 42.21 KB 0755
cvt File 13.99 KB 0755
dawg2wordlist File 14.16 KB 0755
dbilogstrip File 1.35 KB 0755
dbiprof File 6.06 KB 0755
dbiproxy File 5.27 KB 0755
dbus-cleanup-sockets File 9.98 KB 0755
dbus-daemon File 231.04 KB 0755
dbus-launch File 25.99 KB 0755
dbus-monitor File 21.99 KB 0755
dbus-run-session File 9.98 KB 0755
dbus-send File 25.98 KB 0755
dbus-update-activation-environment File 13.98 KB 0755
dbus-uuidgen File 9.98 KB 0755
deallocvt File 10.07 KB 0755
deb-systemd-helper File 19.67 KB 0755
deb-systemd-invoke File 4.33 KB 0755
debconf File 2.79 KB 0755
debconf-apt-progress File 11.27 KB 0755
debconf-communicate File 608 B 0755
debconf-copydb File 1.68 KB 0755
debconf-escape File 647 B 0755
debconf-gettextize File 15.97 KB 0755
debconf-set-selections File 2.87 KB 0755
debconf-show File 1.78 KB 0755
debconf-updatepo File 4.46 KB 0755
debian-distro-info File 18.59 KB 0755
delpart File 22.08 KB 0755
delv File 40.86 KB 0755
derb File 22.57 KB 0755
desktop-file-edit File 88.03 KB 0755
desktop-file-install File 88.03 KB 0755
desktop-file-validate File 76.26 KB 0755
dh_autotools-dev_restoreconfig File 1.79 KB 0755
dh_autotools-dev_updateconfig File 1.81 KB 0755
dh_bash-completion File 2.49 KB 0755
dh_perl_dbi File 1.04 KB 0755
dh_perl_openssl File 1.36 KB 0755
dh_pypy File 12.58 KB 0755
dh_python2 File 1.03 KB 0755
dh_python3 File 12.78 KB 0755
dialog File 230.03 KB 0755
diff File 142.34 KB 0755
diff3 File 62.21 KB 0755
dig File 146.51 KB 0755
dircolors File 46.19 KB 0755
dirmngr File 533.55 KB 0755
dirmngr-client File 106.76 KB 0755
dirname File 30.18 KB 0755
distro-info File 18.59 KB 0755
djpeg File 34.07 KB 0755
do-release-upgrade File 9.39 KB 0755
docker File 48.44 MB 0755
docker-init File 785.91 KB 0755
docker-proxy File 2.45 MB 0755
dockerd File 81.04 MB 0755
dpkg File 290.5 KB 0755
dpkg-architecture File 12.55 KB 0755
dpkg-buildflags File 7.39 KB 0755
dpkg-buildpackage File 29.1 KB 0755
dpkg-checkbuilddeps File 7.33 KB 0755
dpkg-deb File 150.34 KB 0755
dpkg-distaddfile File 2.72 KB 0755
dpkg-divert File 138.41 KB 0755
dpkg-genbuildinfo File 16.38 KB 0755
dpkg-genchanges File 17.21 KB 0755
dpkg-gencontrol File 13.73 KB 0755
dpkg-gensymbols File 10.38 KB 0755
dpkg-maintscript-helper File 18.58 KB 0755
dpkg-mergechangelogs File 8.39 KB 0755
dpkg-name File 6.63 KB 0755
dpkg-parsechangelog File 4.33 KB 0755
dpkg-query File 146.4 KB 0755
dpkg-scanpackages File 8.23 KB 0755
dpkg-scansources File 8.95 KB 0755
dpkg-shlibdeps File 30.63 KB 0755
dpkg-source File 22.75 KB 0755
dpkg-split File 118.34 KB 0755
dpkg-statoverride File 70.25 KB 0755
dpkg-trigger File 66.26 KB 0755
dpkg-vendor File 3.19 KB 0755
du File 98.21 KB 0755
dumpkeys File 166.52 KB 0755
dvipdf File 1023 B 0755
dwp File 2.75 MB 0755
eatmydata File 2.74 KB 0755
ec2metadata File 7.13 KB 0755
edit File 17.74 KB 0755
editor File 240.11 KB 0755
editres File 68.4 KB 0755
eject File 30.69 KB 0755
elfedit File 30.45 KB 0755
enc2xs File 41.17 KB 0755
encguess File 2.99 KB 0755
enchant File 18.07 KB 0755
enchant-lsmod File 9.99 KB 0755
env File 34.18 KB 0755
envsubst File 34.08 KB 0755
eps2eps File 639 B 0755
eqn File 193.19 KB 0755
ex File 2.55 MB 0755
exifautotran File 1.11 KB 0755
exo-csource File 14.09 KB 0755
exo-desktop-item-edit File 70.55 KB 0755
exo-open File 18.32 KB 0755
exo-preferred-applications File 296 B 0755
expand File 38.21 KB 0755
expiry File 22.27 KB 2755
expr File 46.18 KB 0755
factor File 74.21 KB 0755
faillog File 18.29 KB 0755
faked-sysv File 26.11 KB 0755
faked-tcp File 30.1 KB 0755
fakeroot File 3.76 KB 0755
fakeroot-sysv File 3.76 KB 0755
fakeroot-tcp File 3.76 KB 0755
fallocate File 26.08 KB 0755
fc-cache File 14.07 KB 0755
fc-cat File 14.07 KB 0755
fc-list File 10.07 KB 0755
fc-match File 10.07 KB 0755
fc-pattern File 10.07 KB 0755
fc-query File 10.07 KB 0755
fc-scan File 10.07 KB 0755
fc-validate File 10.07 KB 0755
fcgistarter File 9.99 KB 0755
ffmpeg File 266.14 KB 0755
ffplay File 134.16 KB 0755
ffprobe File 158.15 KB 0755
ffserver File 139.27 KB 0755
file File 22.26 KB 0755
find File 232.5 KB 0755
flock File 30.16 KB 0755
fmt File 42.18 KB 0755
fold File 34.18 KB 0755
fonttosfnt File 34.02 KB 0755
free File 18.08 KB 0755
freetype-config File 4.62 KB 0755
from File 9.99 KB 0755
ftp File 98.7 KB 0755
funzip File 21.99 KB 0755
futurize File 384 B 0755
g++ File 1022.94 KB 0755
g++-7 File 1022.94 KB 0755
gapplication File 18.07 KB 0755
gawk File 642.65 KB 0755
gcc File 1022.94 KB 0755
gcc-7 File 1022.94 KB 0755
gcc-8 File 1.01 MB 0755
gcc-ar File 30.47 KB 0755
gcc-ar-7 File 30.47 KB 0755
gcc-ar-8 File 26.47 KB 0755
gcc-nm File 30.47 KB 0755
gcc-nm-7 File 30.47 KB 0755
gcc-nm-8 File 26.47 KB 0755
gcc-ranlib File 30.47 KB 0755
gcc-ranlib-7 File 30.47 KB 0755
gcc-ranlib-8 File 26.47 KB 0755
gccgo-8 File 1.01 MB 0755
gconf-merge-tree File 54.08 KB 0755
gconftool File 62.07 KB 0755
gconftool-2 File 62.07 KB 0755
gcov File 616.09 KB 0755
gcov-7 File 616.09 KB 0755
gcov-8 File 640.09 KB 0755
gcov-dump File 499.93 KB 0755
gcov-dump-7 File 499.93 KB 0755
gcov-dump-8 File 491.95 KB 0755
gcov-tool File 535.99 KB 0755
gcov-tool-7 File 535.99 KB 0755
gcov-tool-8 File 512.02 KB 0755
gdbus File 42.08 KB 0755
gdbus-codegen File 2 KB 0755
gdebi File 3.94 KB 0755
gdk-pixbuf-thumbnailer File 14.08 KB 0755
genbrk File 14.48 KB 0755
gencat File 22.22 KB 0755
gencfu File 10.43 KB 0755
gencnval File 22.32 KB 0755
gendict File 22.55 KB 0755
genrb File 123.59 KB 0755
geqn File 193.19 KB 0755
getconf File 30.13 KB 0755
getent File 30.49 KB 0755
getfacl File 22.62 KB 0755
getkeycodes File 10.07 KB 0755
getopt File 14.07 KB 0755
gettext File 34.08 KB 0755
gettext.sh File 4.52 KB 0755
gettextize File 42.73 KB 0755
ghostscript File 9.99 KB 0755
ginstall-info File 43.09 KB 0755
gio File 78.09 KB 0755
gio-querymodules File 9.99 KB 0755
git File 2.27 MB 0755
git-receive-pack File 2.27 MB 0755
git-shell File 1.26 MB 0755
git-upload-archive File 2.27 MB 0755
git-upload-pack File 1.27 MB 0755
glib-compile-resources File 38.07 KB 0755
glib-compile-schemas File 42.07 KB 0755
glib-genmarshal File 39.97 KB 0755
glib-gettextize File 5.25 KB 0755
glib-mkenums File 27.15 KB 0755
globaltime File 82.05 KB 0755
gnome-help File 54.07 KB 0755
gnome-terminal File 3.33 KB 0755
gnome-terminal.real File 94.84 KB 0755
gnome-terminal.wrapper File 2.36 KB 0755
go File 1.76 MB 0755
go-8 File 1.76 MB 0755
gobject-query File 10 KB 0755
gofmt File 127.6 KB 0755
gofmt-8 File 127.6 KB 0755
gold File 2.97 MB 0755
gpasswd File 74.05 KB 4755
gpg File 997.6 KB 0755
gpg-agent File 392.7 KB 0755
gpg-connect-agent File 154.85 KB 0755
gpg-wks-server File 187.02 KB 0755
gpg-zip File 3.36 KB 0755
gpgconf File 166.32 KB 0755
gpgparsemail File 26.07 KB 0755
gpgsm File 491.09 KB 0755
gpgsplit File 78.45 KB 0755
gpgv File 427.02 KB 0755
gpic File 204.03 KB 0755
gprof File 99.73 KB 0755
grafana-agent File 177.48 MB 0755
grafana-agentctl File 161.58 MB 0755
gresource File 17.99 KB 0755
groff File 105.31 KB 0755
grog File 2.71 KB 0755
grops File 165.72 KB 0755
grotty File 121.34 KB 0755
groups File 34.18 KB 0755
growpart File 21.37 KB 0755
grub-editenv File 239.93 KB 0755
grub-file File 659.79 KB 0755
grub-fstest File 789.65 KB 0755
grub-glue-efi File 235.77 KB 0755
grub-kbdcomp File 1.64 KB 0755
grub-menulst2cfg File 216.04 KB 0755
grub-mkfont File 264.34 KB 0755
grub-mkimage File 328.84 KB 0755
grub-mklayout File 240.09 KB 0755
grub-mknetdir File 373.41 KB 0755
grub-mkpasswd-pbkdf2 File 244.12 KB 0755
grub-mkrelpath File 235.49 KB 0755
grub-mkrescue File 822.23 KB 0755
grub-mkstandalone File 449.74 KB 0755
grub-mount File 608.21 KB 0755
grub-render-label File 676.16 KB 0755
grub-script-check File 259.62 KB 0755
grub-syslinux2cfg File 624.68 KB 0755
gs File 9.99 KB 0755
gsbj File 350 B 0755
gsdj File 352 B 0755
gsdj500 File 352 B 0755
gsettings File 26.07 KB 0755
gsettings-data-convert File 21.99 KB 0755
gsettings-schema-convert File 40.83 KB 0755
gslj File 353 B 0755
gslp File 350 B 0755
gsnd File 277 B 0755
gtbl File 126.2 KB 0755
gtester File 22.01 KB 0755
gtester-report File 18.39 KB 0755
gtf File 13.99 KB 0755
gtk-builder-tool File 26.42 KB 0755
gtk-launch File 14.15 KB 0755
gtk-query-settings File 9.99 KB 0755
gtk-update-icon-cache File 30.47 KB 0755
h2ph File 28.54 KB 0755
h2xs File 59.44 KB 0755
hd File 26.1 KB 0755
head File 42.21 KB 0755
helpztags File 2.46 KB 0755
hexdump File 26.1 KB 0755
host File 126.66 KB 0755
hostid File 30.18 KB 0755
hostnamectl File 18.07 KB 0755
htcacheclean File 30 KB 0755
htdbm File 21.99 KB 0755
htdigest File 13.99 KB 0755
htop File 180.68 KB 0755
htpasswd File 17.99 KB 0755
hwe-support-status File 10.58 KB 0755
i386 File 18.34 KB 0755
i686-linux-gnu-pkg-config File 2.06 KB 0755
iceauth File 38.12 KB 0755
ico File 48.13 KB 0755
iconv File 62.25 KB 0755
icu-config File 21.66 KB 0755
icuinfo File 10.32 KB 0755
id File 42.21 KB 0755
ifnames File 4.03 KB 0755
igawk File 3.11 KB 0755
info File 245.72 KB 0755
infobrowser File 245.72 KB 0755
infocmp File 58.07 KB 0755
infotocap File 82.11 KB 0755
innochecksum File 3.52 MB 0755
install File 142.25 KB 0755
install-info File 43.09 KB 0755
instmodsh File 4.27 KB 0755
intel-virtual-output File 65.99 KB 0755
ionice File 26.08 KB 0755
ipcmk File 26.14 KB 0755
ipcrm File 26.08 KB 0755
ipcs File 50.08 KB 0755
iptables-xml File 92.74 KB 0755
ischroot File 10.04 KB 0755
iscsiadm File 381.95 KB 0755
isdv4-serial-debugger File 18.02 KB 0755
isdv4-serial-inputattach File 18.02 KB 0755
ispell-wrapper File 7.05 KB 0755
join File 46.21 KB 0755
jpegexiforient File 9.99 KB 0755
jpegtran File 29.99 KB 0755
json_pp File 3.87 KB 0755
jsondiff File 1018 B 0755
jsonpatch File 3.58 KB 0755
jsonpointer File 1.31 KB 0755
jsonschema File 398 B 0755
kbdinfo File 14.07 KB 0755
kbxutil File 158.69 KB 0755
keep-one-running File 3.51 KB 0755
kernel-install File 4.4 KB 0755
keyring File 385 B 0755
killall File 27.12 KB 0755
kmodsign File 14.13 KB 0755
landscape-sysinfo File 624 B 0755
last File 42.08 KB 0755
lastb File 42.08 KB 0755
lastlog File 18.07 KB 0755
lcf File 7.6 KB 0755
ld File 1.7 MB 0755
ld.bfd File 1.7 MB 0755
ld.gold File 2.97 MB 0755
ldd File 5.29 KB 0755
less File 166.76 KB 0755
lessecho File 10.02 KB 0755
lessfile File 8.36 KB 0755
lesskey File 19.39 KB 0755
lesspipe File 8.36 KB 0755
letsencrypt File 385 B 0755
lexgrog File 90.57 KB 0755
libnetcfg File 15.41 KB 0755
libpng-config File 2.41 KB 0755
libpng16-config File 2.41 KB 0755
libtoolize File 126.16 KB 0755
libwacom-list-local-devices File 10.1 KB 0755
link File 30.18 KB 0755
linux-boot-prober File 1.54 KB 0755
linux-check-removal File 3.99 KB 0755
linux-update-symlinks File 6.17 KB 0755
linux-version File 2.63 KB 0755
linux32 File 18.34 KB 0755
linux64 File 18.34 KB 0755
listres File 10.41 KB 0755
lnstat File 22.35 KB 0755
loadkeys File 206.57 KB 0755
loadunimap File 26.13 KB 0755
locale File 49.41 KB 0755
locale-check File 10 KB 0755
localectl File 22.07 KB 0755
localedef File 330.8 KB 0755
locate File 42.08 KB 2755
logger File 46.67 KB 0755
logname File 30.18 KB 0755
logresolve File 10 KB 0755
look File 10.23 KB 0755
lorder File 2.82 KB 0755
lsattr File 10 KB 0755
lsb_release File 3.55 KB 0755
lscpu File 70.08 KB 0755
lshw File 682.95 KB 0755
lsinitramfs File 625 B 0755
lsipc File 70.08 KB 0755
lslocks File 34.41 KB 0755
lslogins File 62.08 KB 0755
lsmem File 42.08 KB 0755
lsns File 38.08 KB 0755
lsof File 159.4 KB 0755
lspci File 79.67 KB 0755
lspgpot File 1.06 KB 0755
lstmeval File 62.2 KB 0755
lstmtraining File 74.2 KB 0755
lsusb File 114.43 KB 0755
ltrace File 325.21 KB 0755
luit File 48.12 KB 0755
lwp-download File 10.05 KB 0755
lwp-dump File 2.65 KB 0755
lwp-mirror File 2.36 KB 0755
lwp-request File 15.84 KB 0755
lxc File 10.28 MB 0755
lxcfs File 18.07 KB 0755
lxd File 105 B 0755
lzcat File 74.36 KB 0755
lzcmp File 6.48 KB 0755
lzdiff File 6.48 KB 0755
lzegrep File 5.76 KB 0755
lzfgrep File 5.76 KB 0755
lzgrep File 5.76 KB 0755
lzless File 1.76 KB 0755
lzma File 74.36 KB 0755
lzmainfo File 10.07 KB 0755
lzmore File 2.11 KB 0755
m4 File 154.3 KB 0755
make File 217.57 KB 0755
make-first-existing-target File 4.79 KB 0755
makeconv File 46.77 KB 0755
man File 104.5 KB 0755
mandb File 126.72 KB 0755
manifest File 1.9 KB 0755
manpath File 30.47 KB 0755
mapscrn File 22.13 KB 0755
markdown_py File 1013 B 0755
mawk File 122.48 KB 0755
mcookie File 30.14 KB 0755
md5sum File 42.21 KB 0755
md5sum.textutils File 42.21 KB 0755
mdig File 42.13 KB 0755
merge_unicharsets File 10.09 KB 0755
mesg File 10.07 KB 0755
mftraining File 62.2 KB 0755
migrate-pubring-from-classic-gpg File 2.14 KB 0755
mimeopen File 8.42 KB 0755
mimetype File 11.81 KB 0755
miniterm File 34.28 KB 0755
mk_modmap File 15.78 KB 0755
mkfifo File 62.18 KB 0755
mkfontdir File 65 B 0755
mkfontscale File 38.52 KB 0755
mksquashfs File 184.99 KB 0755
mlocate File 42.08 KB 2755
mmcli File 199.82 KB 0755
mokutil File 55.4 KB 0755
mousepad File 262.15 KB 0755
msgattrib File 22.07 KB 0755
msgcat File 22.07 KB 0755
msgcmp File 22.08 KB 0755
msgcomm File 22.07 KB 0755
msgconv File 18.07 KB 0755
msgen File 18.07 KB 0755
msgexec File 14.07 KB 0755
msgfilter File 26.07 KB 0755
msgfmt File 78.27 KB 0755
msggrep File 34.19 KB 0755
msginit File 62.41 KB 0755
msgmerge File 66.45 KB 0755
msgunfmt File 30.09 KB 0755
msguniq File 18.07 KB 0755
mtr File 71.94 KB 0755
mtr-packet File 25.99 KB 0755
mtrace File 6.34 KB 0755
my_print_defaults File 3.45 MB 0755
myisam_ftdump File 3.75 MB 0755
myisamchk File 3.85 MB 0755
myisamlog File 3.73 MB 0755
myisampack File 3.78 MB 0755
mysql File 3.81 MB 0755
mysql_config_editor File 3.46 MB 0755
mysql_embedded File 21.17 MB 0755
mysql_install_db File 5.01 MB 0755
mysql_plugin File 3.45 MB 0755
mysql_secure_installation File 3.69 MB 0755
mysql_ssl_rsa_setup File 3.49 MB 0755
mysql_tzinfo_to_sql File 3.4 MB 0755
mysql_upgrade File 4.32 MB 0755
mysqladmin File 3.71 MB 0755
mysqlanalyze File 3.73 MB 0755
mysqlbinlog File 3.96 MB 0755
mysqlcheck File 3.73 MB 0755
mysqld_multi File 26.3 KB 0755
mysqld_safe File 27.16 KB 0755
mysqldump File 3.78 MB 0755
mysqldumpslow File 7.66 KB 0755
mysqlimport File 3.7 MB 0755
mysqloptimize File 3.73 MB 0755
mysqlpump File 4.17 MB 0755
mysqlrepair File 3.73 MB 0755
mysqlreport File 38.1 KB 0755
mysqlshow File 3.7 MB 0755
mysqlslap File 3.71 MB 0755
mysqltuner File 208.31 KB 0755
mytop File 59.58 KB 0755
namei File 26.08 KB 0755
nawk File 642.65 KB 0755
ncal File 28.79 KB 0755
neqn File 908 B 0755
netkit-ftp File 98.7 KB 0755
networkd-dispatcher File 19.53 KB 0755
newgidmap File 36.27 KB 4755
newgrp File 39.4 KB 4755
newuidmap File 36.27 KB 4755
ngettext File 34.08 KB 0755
nice File 34.18 KB 0755
nl File 42.27 KB 0755
nm File 43.27 KB 0755
nm-online File 13.98 KB 0755
nmcli File 678.7 KB 0755
nmtui File 243.31 KB 0755
nmtui-connect File 243.31 KB 0755
nmtui-edit File 243.31 KB 0755
nmtui-hostname File 243.31 KB 0755
nohup File 34.18 KB 0755
notify-send File 14.09 KB 0755
nproc File 34.18 KB 0755
nroff File 3.25 KB 0755
nsenter File 30.28 KB 0755
nslookup File 130.51 KB 0755
nstat File 26.07 KB 0755
nsupdate File 66.02 KB 0755
ntfsdecrypt File 46.12 KB 0755
numfmt File 62.24 KB 0755
objcopy File 230.2 KB 0755
objdump File 404.55 KB 0755
oclock File 23.34 KB 0755
od File 66.21 KB 0755
on_ac_power File 2.16 KB 0755
openssl File 706.98 KB 0755
orage File 330.79 KB 0755
os-prober File 4.44 KB 0755
p7zip File 4.64 KB 0755
pacat File 42.11 KB 0755
pacmd File 18.07 KB 0755
pactl File 62.09 KB 0755
padsp File 2.21 KB 0755
pager File 166.76 KB 0755
pamon File 42.11 KB 0755
paperconf File 9.99 KB 0755
paplay File 42.11 KB 0755
parec File 42.11 KB 0755
parecord File 42.11 KB 0755
partx File 86.08 KB 0755
passwd File 58.24 KB 4755
paste File 34.21 KB 0755
pastebinit File 16.25 KB 0755
pasteurize File 388 B 0755
pasuspender File 14.08 KB 0755
patch File 178.37 KB 0755
pathchk File 34.18 KB 0755
pavucontrol File 442.2 KB 0755
pax11publish File 13.99 KB 0755
pbget File 2.51 KB 0755
pbput File 2.51 KB 0755
pbputs File 2.51 KB 0755
pbr File 152 B 0755
pcimodules File 14.13 KB 0755
pcre-config File 2.29 KB 0755
pdb File 45.02 KB 0755
pdb2.7 File 45.02 KB 0755
pdb3 File 59.87 KB 0755
pdb3.6 File 59.87 KB 0755
pdf2dsc File 698 B 0755
pdf2ps File 909 B 0755
pear File 793 B 0755
peardev File 814 B 0755
pecl File 727 B 0755
peekfd File 13.99 KB 0755
perl File 2 MB 0755
perl5.26-x86_64-linux-gnu File 9.98 KB 0755
perl5.26.1 File 2 MB 0755
perlbug File 44.78 KB 0755
perldoc File 125 B 0755
perlivp File 10.61 KB 0755
perlthanks File 44.78 KB 0755
perror File 3.58 MB 0755
pf2afm File 498 B 0755
pfbtopfa File 516 B 0755
pftp File 98.7 KB 0755
pgrep File 26.09 KB 0755
phar File 14.47 KB 0755
phar.phar File 14.47 KB 0755
phar.phar7.0 File 14.48 KB 0755
phar.phar7.2 File 14.47 KB 0755
phar7.0 File 14.48 KB 0755
phar7.2 File 14.47 KB 0755
php File 4.68 MB 0755
php File 36.89 MB 0755
php7.0 File 4.2 MB 0755
php7.2 File 4.68 MB 0755
pic File 204.03 KB 0755
pico File 240.11 KB 0755
piconv File 8.16 KB 0755
pigz File 114.2 KB 0755
pinentry File 62.49 KB 0755
pinentry-curses File 62.49 KB 0755
pinky File 38.21 KB 0755
pip3 File 293 B 0755
pkaction File 13.99 KB 0755
pkcheck File 18.07 KB 0755
pkexec File 21.99 KB 4755
pkg-config File 50.09 KB 0755
pkgdata File 43.22 KB 0755
pkill File 26.09 KB 0755
pkttyagent File 13.99 KB 0755
pl2pm File 4.43 KB 0755
pldd File 14.22 KB 0755
plog File 146 B 0755
pmap File 30.09 KB 0755
png-fix-itxt File 9.99 KB 0755
pngfix File 46.08 KB 0755
po2debconf File 8.47 KB 0755
pod2html File 4.04 KB 0755
pod2man File 14.73 KB 0755
pod2text File 10.72 KB 0755
pod2usage File 3.86 KB 0755
podchecker File 3.57 KB 0755
podebconf-display-po File 12.67 KB 0755
podebconf-report-po File 31.76 KB 0755
podselect File 2.47 KB 0755
poff File 2.77 KB 0755
pollinate File 8.54 KB 0755
pon File 1.33 KB 0755
pphs File 404 B 0755
pr File 70.27 KB 0755
precat File 5.52 KB 0755
preconv File 46.2 KB 0755
preunzip File 5.52 KB 0755
prezip File 5.52 KB 0755
prezip-bin File 9.99 KB 0755
print File 17.74 KB 0755
printafm File 395 B 0755
printenv File 30.18 KB 0755
printerbanner File 22 KB 0755
printf File 50.18 KB 0755
prlimit File 34.59 KB 0755
pro File 442 B 0755
protonvpn-cli File 415 B 0755
prove File 13.27 KB 0755
prtstat File 18.07 KB 0755
ps2ascii File 631 B 0755
ps2epsi File 2.69 KB 0755
ps2pdf File 272 B 0755
ps2pdf12 File 215 B 0755
ps2pdf13 File 215 B 0755
ps2pdf14 File 215 B 0755
ps2pdfwr File 1.07 KB 0755
ps2ps File 647 B 0755
ps2ps2 File 669 B 0755
ps2txt File 631 B 0755
psfaddtable File 17.99 KB 0755
psfgettable File 17.99 KB 0755
psfstriptable File 17.99 KB 0755
psfxtable File 17.99 KB 0755
pslog File 9.99 KB 0755
pspell-config File 374 B 0755
pstree File 26.95 KB 0755
pstree.x11 File 26.95 KB 0755
ptar File 3.47 KB 0755
ptardiff File 2.57 KB 0755
ptargrep File 4.29 KB 0755
ptx File 70.24 KB 0755
pulseaudio File 90.16 KB 0755
purge-old-kernels File 1.12 KB 0755
pwdx File 10.07 KB 0755
py3clean File 7.63 KB 0755
py3compile File 11.83 KB 0755
py3versions File 11.44 KB 0755
pybuild File 25.03 KB 0755
pyclean File 4.03 KB 0755
pycompile File 11.62 KB 0755
pydoc File 79 B 0755
pydoc2.7 File 79 B 0755
pydoc3 File 79 B 0755
pydoc3.6 File 79 B 0755
pygettext File 21.56 KB 0755
pygettext2.7 File 21.56 KB 0755
pygettext3 File 21.04 KB 0755
pygettext3.6 File 21.04 KB 0755
pygmentize File 149 B 0755
pyhtmlizer3 File 392 B 0755
pyjwt3 File 372 B 0755
python File 3.47 MB 0755
python2 File 3.47 MB 0755
python2.7 File 3.47 MB 0755
python3 File 4.32 MB 0755
python3-config File 3.21 KB 0755
python3-futurize File 384 B 0755
python3-jsondiff File 1018 B 0755
python3-jsonpatch File 3.58 KB 0755
python3-jsonpointer File 1.31 KB 0755
python3-jsonschema File 398 B 0755
python3-pasteurize File 388 B 0755
python3-pbr File 152 B 0755
python3.6 File 4.32 MB 0755
python3.6-config File 3.21 KB 0755
python3.6m File 4.32 MB 0755
python3.6m-config File 3.21 KB 0755
python3m File 4.32 MB 0755
python3m-config File 3.21 KB 0755
pyversions File 14.75 KB 0755
qt-faststart File 9.99 KB 0755
ranlib File 58.27 KB 0755
rcp File 98.14 KB 0755
rdjpgcom File 9.99 KB 0755
rdma File 26.07 KB 0755
readelf File 582.46 KB 0755
realpath File 46.21 KB 0755
recode-sr-latin File 14.07 KB 0755
rename.ul File 14.07 KB 0755
rendercheck File 55.65 KB 0755
renice File 14.07 KB 0755
replace File 3.42 MB 0755
reset File 22 KB 0755
resizecons File 18.13 KB 0755
resizepart File 38.08 KB 0755
resolveip File 3.44 MB 0755
rev File 10.07 KB 0755
rgrep File 30 B 0755
ristretto File 228.32 KB 0755
rlogin File 710.79 KB 0755
rotatelogs File 18.07 KB 0755
routef File 208 B 0755
routel File 1.62 KB 0755
rpcgen File 98.53 KB 0755
rsh File 710.79 KB 0755
rstart File 2.55 KB 0755
rstartd File 1.43 KB 0755
rsync File 496.43 KB 0755
rtstat File 22.35 KB 0755
run-mailcap File 17.74 KB 0755
run-one File 3.51 KB 0755
run-one-constantly File 3.51 KB 0755
run-one-until-failure File 3.51 KB 0755
run-one-until-success File 3.51 KB 0755
run-this-one File 3.51 KB 0755
run-with-aspell File 57 B 0755
runcon File 34.18 KB 0755
rview File 2.55 MB 0755
rvim File 2.55 MB 0755
savelog File 10.22 KB 0755
sbattach File 50.33 KB 0755
sbkeysync File 58.55 KB 0755
sbsiglist File 50.39 KB 0755
sbsign File 54.39 KB 0755
sbvarsign File 54.45 KB 0755
sbverify File 54.33 KB 0755
scp File 98.14 KB 0755
screen File 455.01 KB 0755
screendump File 9.99 KB 0755
script File 30.07 KB 0755
scriptreplay File 26.08 KB 0755
sdiff File 50.09 KB 0755
secret-tool File 18.07 KB 0755
see File 17.74 KB 0755
select-default-iwrap File 474 B 0755
select-editor File 2.38 KB 0755
sensible-browser File 1.18 KB 0755
sensible-editor File 1.08 KB 0755
sensible-pager File 433 B 0755
sensors File 26.2 KB 0755
sensors-conf-convert File 13.7 KB 0755
seq File 46.18 KB 0755
sessreg File 13.99 KB 0755
set_unicharset_properties File 114.2 KB 0755
setarch File 18.34 KB 0755
setfacl File 34.68 KB 0755
setkeycodes File 10.07 KB 0755
setleds File 14.05 KB 0755
setlogcons File 10.07 KB 0755
setmetamode File 10.1 KB 0755
setpci File 26.08 KB 0755
setsid File 10.07 KB 0755
setterm File 42.08 KB 0755
setxkbmap File 22.39 KB 0755
sftp File 150.35 KB 0755
sg File 39.4 KB 4755
sha1sum File 46.21 KB 0755
sha224sum File 54.21 KB 0755
sha256sum File 54.21 KB 0755
sha384sum File 58.21 KB 0755
sha512sum File 58.21 KB 0755
shapeclustering File 50.2 KB 0755
shasum File 9.15 KB 0755
showconsolefont File 18.07 KB 0755
showkey File 14.07 KB 0755
showrgb File 9.99 KB 0755
shred File 58.21 KB 0755
shuf File 54.18 KB 0755
size File 30.3 KB 0755
skill File 26.08 KB 0755
slabtop File 18.08 KB 0755
slogin File 710.79 KB 0755
smproxy File 22 KB 0755
snap File 23.88 MB 0755
snapctl File 8.42 MB 0755
snapfuse File 38.13 KB 0755
snice File 26.08 KB 0755
soelim File 30.2 KB 0755
sort File 110.47 KB 0755
sos File 596 B 0755
sos-collector File 1.04 KB 0755
sosreport File 1.03 KB 0755
sotruss File 4.21 KB 0755
splain File 18.7 KB 0755
split File 54.63 KB 0755
splitfont File 9.99 KB 0755
sprof File 26.21 KB 0755
ssh File 710.79 KB 0755
ssh-add File 338.13 KB 0755
ssh-agent File 354.14 KB 2755
ssh-argv0 File 1.42 KB 0755
ssh-copy-id File 10.41 KB 0755
ssh-import-id File 1.73 KB 0755
ssh-import-id-gh File 782 B 0755
ssh-import-id-lp File 782 B 0755
ssh-keygen File 410.16 KB 0755
ssh-keyscan File 410.16 KB 0755
start-pulseaudio-x11 File 1.51 KB 0755
startx File 5.39 KB 0755
startxfce4 File 2.9 KB 0755
stat File 78.21 KB 0755
stdbuf File 46.18 KB 0755
strace File 1.31 MB 0755
strace-log-merge File 2.58 KB 0755
strings File 30.5 KB 0755
strip File 230.2 KB 0755
sudo File 145.59 KB 4755
sudoedit File 145.59 KB 4755
sudoreplay File 54.81 KB 0755
sum File 38.19 KB 0755
symcryptrun File 110.73 KB 0755
systemd-analyze File 1.49 MB 0755
systemd-cat File 10.07 KB 0755
systemd-cgls File 14.07 KB 0755
systemd-cgtop File 30.09 KB 0755
systemd-delta File 22.07 KB 0755
systemd-detect-virt File 10.06 KB 0755
systemd-mount File 42.09 KB 0755
systemd-path File 10.06 KB 0755
systemd-resolve File 86.07 KB 0755
systemd-run File 42.07 KB 0755
systemd-socket-activate File 18.07 KB 0755
systemd-stdio-bridge File 14.07 KB 0755
systemd-umount File 42.09 KB 0755
tabs File 13.99 KB 0755
tac File 38.18 KB 0755
tail File 66.24 KB 0755
taskset File 30.08 KB 0755
tbl File 126.2 KB 0755
tee File 34.21 KB 0755
telnet File 108.42 KB 0755
telnet.netkit File 108.42 KB 0755
tesseract File 26.09 KB 0755
test File 46.18 KB 0755
text2image File 190.2 KB 0755
thunar File 755.85 KB 0755
thunar-settings File 333 B 0755
thunar-volman File 42.41 KB 0755
thunar-volman-settings File 38.07 KB 0755
tic File 82.11 KB 0755
time File 14.38 KB 0755
timedatectl File 22.07 KB 0755
timeout File 38.63 KB 0755
tkconch3 File 386 B 0755
tload File 14.09 KB 0755
tmux File 563.56 KB 0755
toe File 13.99 KB 0755
top File 105.77 KB 0755
touch File 86.21 KB 0755
tput File 18.02 KB 0755
tr File 46.18 KB 0755
tracepath File 14.01 KB 0755
traceroute6 File 18.02 KB 4755
traceroute6.iputils File 18.02 KB 4755
transset File 18.48 KB 0755
trial3 File 382 B 0755
troff File 719.34 KB 0755
truncate File 38.18 KB 0755
tset File 22 KB 0755
tsort File 34.18 KB 0755
tty File 30.18 KB 0755
twist3 File 382 B 0755
twistd3 File 384 B 0755
tz_convert File 38.02 KB 0755
tzselect File 15.04 KB 0755
ua File 442 B 0755
ubuntu-advantage File 442 B 0755
ubuntu-bug File 2.5 KB 0755
ubuntu-core-launcher File 127.21 KB 4755
ubuntu-distro-info File 18.59 KB 0755
ubuntu-support-status File 7.84 KB 0755
ucf File 39.73 KB 0755
ucfq File 18.91 KB 0755
ucfr File 10.47 KB 0755
uconv File 50.6 KB 0755
ucs2any File 21.99 KB 0755
udisksctl File 54.07 KB 0755
ul File 14.01 KB 0755
unattended-upgrade File 82.55 KB 0755
unattended-upgrades File 82.55 KB 0755
unexpand File 38.21 KB 0755
unicharset_extractor File 102.16 KB 0755
unicode_stop File 530 B 0755
uniq File 42.21 KB 0755
unlink File 30.18 KB 0755
unlzma File 74.36 KB 0755
unmkinitramfs File 2.94 KB 0755
unpigz File 114.2 KB 0755
unshare File 18.27 KB 0755
unsquashfs File 99.71 KB 0755
unxz File 74.36 KB 0755
unzip File 174.13 KB 0755
unzipsfx File 78.12 KB 0755
update-alternatives File 46.01 KB 0755
update-desktop-database File 22.07 KB 0755
update-gconf-defaults File 5.87 KB 0755
update-mime-database File 50.19 KB 0755
updatedb File 46.08 KB 0755
updatedb.mlocate File 46.08 KB 0755
upower File 13.99 KB 0755
uptime File 10.07 KB 0755
usb-devices File 4.12 KB 0755
usbhid-dump File 22.08 KB 0755
users File 34.18 KB 0755
utmpdump File 22.07 KB 0755
uuidgen File 14.07 KB 0755
uuidparse File 34.08 KB 0755
vcs-run File 6.75 KB 0755
verve-focus File 9.99 KB 0755
vi File 2.55 MB 0755
view File 2.55 MB 0755
viewres File 26.96 KB 0755
vigpg File 2.58 KB 0755
vim File 2.55 MB 0755
vim.basic File 2.55 MB 0755
vim.tiny File 1.06 MB 0755
vimdiff File 2.55 MB 0755
vimtutor File 2.05 KB 0755
vmhgfs-fuse File 50.48 KB 0755
vmstat File 34.09 KB 0755
vmtoolsd File 54.25 KB 0755
vmware-checkvm File 10.07 KB 0755
vmware-hgfsclient File 10.07 KB 0755
vmware-namespace-cmd File 17.99 KB 0755
vmware-rpctool File 17.99 KB 0755
vmware-toolbox-cmd File 38.28 KB 0755
vmware-vgauth-cmd File 13.99 KB 0755
vmware-vgauth-smoketest File 18.01 KB 0755
vmware-vmblock-fuse File 18.41 KB 0755
vmware-xferlogs File 10.07 KB 0755
vmwarectrl File 10.1 KB 0755
volname File 9.99 KB 0755
w File 18.07 KB 0755
w.procps File 18.07 KB 0755
wall File 30.08 KB 2755
watch File 22.41 KB 0755
watchgnupg File 13.99 KB 0755
wc File 42.19 KB 0755
wget File 487.56 KB 0755
whatis File 46.98 KB 0755
whereis File 26.51 KB 0755
which File 946 B 0755
who File 50.21 KB 0755
whoami File 30.18 KB 0755
wifi-status File 2.06 KB 0755
word-list-compress File 9.99 KB 0755
wordlist2dawg File 18.16 KB 0755
wpa_passphrase File 62 KB 0755
write File 13.99 KB 2755
wrjpgcom File 9.99 KB 0755
x-session-manager File 2.9 KB 0755
x-terminal-emulator File 2.36 KB 0755
x-window-manager File 382.26 KB 0755
x11perf File 189.16 KB 0755
x11perfcomp File 2.74 KB 0755
x86_64 File 18.34 KB 0755
x86_64-linux-gnu-addr2line File 30.55 KB 0755
x86_64-linux-gnu-ar File 58.24 KB 0755
x86_64-linux-gnu-as File 895.98 KB 0755
x86_64-linux-gnu-c++filt File 26.12 KB 0755
x86_64-linux-gnu-cpp File 1022.94 KB 0755
x86_64-linux-gnu-cpp-7 File 1022.94 KB 0755
x86_64-linux-gnu-cpp-8 File 1.01 MB 0755
x86_64-linux-gnu-dwp File 2.75 MB 0755
x86_64-linux-gnu-elfedit File 30.45 KB 0755
x86_64-linux-gnu-g++ File 1022.94 KB 0755
x86_64-linux-gnu-g++-7 File 1022.94 KB 0755
x86_64-linux-gnu-gcc File 1022.94 KB 0755
x86_64-linux-gnu-gcc-7 File 1022.94 KB 0755
x86_64-linux-gnu-gcc-8 File 1.01 MB 0755
x86_64-linux-gnu-gcc-ar File 30.47 KB 0755
x86_64-linux-gnu-gcc-ar-7 File 30.47 KB 0755
x86_64-linux-gnu-gcc-ar-8 File 26.47 KB 0755
x86_64-linux-gnu-gcc-nm File 30.47 KB 0755
x86_64-linux-gnu-gcc-nm-7 File 30.47 KB 0755
x86_64-linux-gnu-gcc-nm-8 File 26.47 KB 0755
x86_64-linux-gnu-gcc-ranlib File 30.47 KB 0755
x86_64-linux-gnu-gcc-ranlib-7 File 30.47 KB 0755
x86_64-linux-gnu-gcc-ranlib-8 File 26.47 KB 0755
x86_64-linux-gnu-gccgo-8 File 1.01 MB 0755
x86_64-linux-gnu-gcov File 616.09 KB 0755
x86_64-linux-gnu-gcov-7 File 616.09 KB 0755
x86_64-linux-gnu-gcov-8 File 640.09 KB 0755
x86_64-linux-gnu-gcov-dump File 499.93 KB 0755
x86_64-linux-gnu-gcov-dump-7 File 499.93 KB 0755
x86_64-linux-gnu-gcov-dump-8 File 491.95 KB 0755
x86_64-linux-gnu-gcov-tool File 535.99 KB 0755
x86_64-linux-gnu-gcov-tool-7 File 535.99 KB 0755
x86_64-linux-gnu-gcov-tool-8 File 512.02 KB 0755
x86_64-linux-gnu-go-8 File 1.76 MB 0755
x86_64-linux-gnu-gofmt-8 File 127.6 KB 0755
x86_64-linux-gnu-gold File 2.97 MB 0755
x86_64-linux-gnu-gprof File 99.73 KB 0755
x86_64-linux-gnu-ld File 1.7 MB 0755
x86_64-linux-gnu-ld.bfd File 1.7 MB 0755
x86_64-linux-gnu-ld.gold File 2.97 MB 0755
x86_64-linux-gnu-nm File 43.27 KB 0755
x86_64-linux-gnu-objcopy File 230.2 KB 0755
x86_64-linux-gnu-objdump File 404.55 KB 0755
x86_64-linux-gnu-pkg-config File 2.06 KB 0755
x86_64-linux-gnu-python3-config File 3.21 KB 0755
x86_64-linux-gnu-python3.6-config File 3.21 KB 0755
x86_64-linux-gnu-python3.6m-config File 3.21 KB 0755
x86_64-linux-gnu-python3m-config File 3.21 KB 0755
x86_64-linux-gnu-ranlib File 58.27 KB 0755
x86_64-linux-gnu-readelf File 582.46 KB 0755
x86_64-linux-gnu-size File 30.3 KB 0755
x86_64-linux-gnu-strings File 30.5 KB 0755
x86_64-linux-gnu-strip File 230.2 KB 0755
x86_64-pc-linux-gnu-pkg-config File 50.09 KB 0755
xarchiver File 282.96 KB 0755
xargs File 70.21 KB 0755
xauth File 50.81 KB 0755
xbiff File 19.88 KB 0755
xcalc File 35.05 KB 0755
xclip File 22.02 KB 0755
xclip-copyfile File 572 B 0755
xclip-cutfile File 386 B 0755
xclip-pastefile File 133 B 0755
xclipboard File 18.27 KB 0755
xclock File 48.76 KB 0755
xcmsdb File 34.74 KB 0755
xconsole File 18.9 KB 0755
xcursorgen File 13.99 KB 0755
xcutsel File 14.26 KB 0755
xdelta3 File 150.3 KB 0755
xdg-desktop-icon File 20.09 KB 0755
xdg-desktop-menu File 42.2 KB 0755
xdg-email File 27.27 KB 0755
xdg-icon-resource File 29.26 KB 0755
xdg-mime File 41 KB 0755
xdg-open File 24.65 KB 0755
xdg-screensaver File 36.79 KB 0755
xdg-settings File 36.85 KB 0755
xdg-user-dir File 234 B 0755
xdg-user-dirs-update File 18.07 KB 0755
xditview File 99.84 KB 0755
xdpyinfo File 34.76 KB 0755
xdriinfo File 9.99 KB 0755
xedit File 661.05 KB 0755
xev File 30.48 KB 0755
xeyes File 23.41 KB 0755
xfburn File 247.04 KB 0755
xfce4-about File 122.37 KB 0755
xfce4-accessibility-settings File 46.15 KB 0755
xfce4-appearance-settings File 67 KB 0755
xfce4-appfinder File 122.59 KB 0755
xfce4-clipman File 62.05 KB 0755
xfce4-clipman-settings File 86.05 KB 0755
xfce4-dict File 130.64 KB 0755
xfce4-display-settings File 298.27 KB 0755
xfce4-find-cursor File 14.01 KB 0755
xfce4-keyboard-settings File 90.15 KB 0755
xfce4-mime-settings File 50.1 KB 0755
xfce4-mouse-settings File 82.27 KB 0755
xfce4-notes File 134.07 KB 0755
xfce4-notes-settings File 22 KB 0755
xfce4-notifyd-config File 85.99 KB 0755
xfce4-panel File 302.66 KB 0755
xfce4-popup-applicationsmenu File 1.53 KB 0755
xfce4-popup-clipman File 9.99 KB 0755
xfce4-popup-clipman-actions File 9.99 KB 0755
xfce4-popup-directorymenu File 1.46 KB 0755
xfce4-popup-notes File 10 KB 0755
xfce4-popup-places File 1.5 KB 0755
xfce4-popup-whiskermenu File 1.5 KB 0755
xfce4-popup-windowmenu File 1.46 KB 0755
xfce4-power-manager File 218.12 KB 0755
xfce4-power-manager-settings File 146.12 KB 0755
xfce4-screenshooter File 98.57 KB 0755
xfce4-sensors File 22 KB 0755
xfce4-session File 170.23 KB 0755
xfce4-session-logout File 10.38 KB 0755
xfce4-session-settings File 106.23 KB 0755
xfce4-settings-editor File 70.23 KB 0755
xfce4-settings-manager File 50.15 KB 0755
xfce4-taskmanager File 130.26 KB 0755
xfce4-terminal File 222.53 KB 0755
xfce4-terminal.wrapper File 1.1 KB 0755
xfconf-query File 26.66 KB 0755
xfd File 35.76 KB 0755
xfdesktop File 370.1 KB 0755
xfdesktop-settings File 138.59 KB 0755
xfhelp4 File 1.89 KB 0755
xflock4 File 1.51 KB 0755
xfontsel File 43.6 KB 0755
xfrun4 File 122.59 KB 0755
xfsettingsd File 102.27 KB 0755
xfwm4 File 382.26 KB 0755
xfwm4-settings File 98.23 KB 0755
xfwm4-tweaks-settings File 66.23 KB 0755
xfwm4-workspace-settings File 130.15 KB 0755
xgamma File 9.99 KB 0755
xgc File 74.12 KB 0755
xgettext File 260.64 KB 0755
xhost File 13.99 KB 0755
xinit File 18.17 KB 0755
xinput File 50.67 KB 0755
xkbbell File 14.01 KB 0755
xkbcomp File 207.72 KB 0755
xkbevd File 34.08 KB 0755
xkbprint File 86.03 KB 0755
xkbvleds File 22.77 KB 0755
xkbwatch File 18.87 KB 0755
xkeystone File 16.58 KB 0755
xkill File 13.99 KB 0755
xload File 14.62 KB 0755
xlogo File 18.88 KB 0755
xlsatoms File 9.99 KB 0755
xlsclients File 14 KB 0755
xlsfonts File 18.09 KB 0755
xmag File 40.04 KB 0755
xman File 68.9 KB 0755
xmessage File 22.88 KB 0755
xml2-config File 1.6 KB 0755
xmodmap File 34.34 KB 0755
xmore File 10.2 KB 0755
xprop File 40.29 KB 0755
xrandr File 62.09 KB 0755
xrdb File 26.09 KB 0755
xrefresh File 10.07 KB 0755
xscreensaver File 264.15 KB 0755
xscreensaver-command File 21.99 KB 0755
xscreensaver-demo File 207.55 KB 0755
xscreensaver-getimage File 139.77 KB 0755
xscreensaver-getimage-file File 30.91 KB 0755
xscreensaver-getimage-video File 4.41 KB 0755
xscreensaver-text File 25.28 KB 0755
xset File 29.99 KB 0755
xsetmode File 9.99 KB 0755
xsetpointer File 9.99 KB 0755
xsetroot File 18 KB 0755
xsetwacom File 55.54 KB 0755
xslt-config File 2.47 KB 0755
xsm File 94.45 KB 0755
xstdcmap File 14.57 KB 0755
xsubpp File 5.04 KB 0755
xvidtune File 39.41 KB 0755
xvinfo File 13.99 KB 0755
xwd File 30.01 KB 0755
xwininfo File 46.08 KB 0755
xwud File 25.99 KB 0755
xxd File 18.12 KB 0755
xz File 74.36 KB 0755
xzcat File 74.36 KB 0755
xzcmp File 6.48 KB 0755
xzdiff File 6.48 KB 0755
xzegrep File 5.76 KB 0755
xzfgrep File 5.76 KB 0755
xzgrep File 5.76 KB 0755
xzless File 1.76 KB 0755
xzmore File 2.11 KB 0755
yarn File 20.25 KB 0755
yelp File 54.07 KB 0755
yes File 30.18 KB 0755
zdump File 18.05 KB 0755
zipdetails File 47.36 KB 0755
zipgrep File 2.88 KB 0755
zipinfo File 174.13 KB 0755