top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Getting top to show usage in human readable format

+4 votes
410 views

On CentOS, top shows per process memory using in kb or mb. On Fedora 19, top shows per process memory usage by the byte. Is there an option or setting to make Fedora's top (from procps-ng) work like CentOS' (from procps).

posted Nov 12, 2013 by Seema Siddique

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Press e while its running - the man page will give you more information.

answer Nov 12, 2013 by Salil Agrawal
Similar Questions
0 votes

In the past I used to think why Firefox can be slow when it's loading pages. Now I've found something that makes a noticeable difference: the addon "ghostery" that blocks "trackers," which their website defines as
page elements - scripts, pixels, iframes, etc. - that are normally invisible to the user. What "trackers" seem to be all about is marketing, and apparently they've been wasting a lot of my time.
http://www.ghostery.com

What's especially interesting to me is a list that shows the trackers that have been blocked for each website I visit. For example, the intro page for cnn.com includes 20 such unwanted visitors with names like "Audience Science," "Dynamic Science," and "Scorecard Research."

+1 vote

I'm trying to convert my Tomboy notes from an old F12 system to Gnote on this CentOS 6 system.

What I have found buy googling so far:
- Tomboy notes used to be stored in $HOME/.tomboy
- Some Tomboy upgrade moved them to $HOME/.local/share/.tomboy
- Gnote stores its notes in $HOME/.local/share/gnote
- Gnote has a Tomboy note converter add-in

My Tomboy notes are in /home/steve/.tomboy so I had the old Tomboy system.
I have the Tomboy add-in installed in Gnote

I have tried copying my notes from $HOME/.tomboy to
$HOME/.local/share/gnote and I have also tried copying them to
$HOME/.local/share/tomboy but in either case I don't see them in gnote.

Do I have a directory name wrong or is there some action needed to start the conversion?

+1 vote

Write a function which can take a random JSON and transform the data into multiple line human readable title value pairs.

For example:

Given JSON

{
        university: 'Oxford',
        batch: '2019-2020',
        address: {
            street: '144 Main',
            city: 'London',
            country: 'UK',
            contact: {
                fax: 'XXXXXX',
                phone: 'YYYYY'
            }
        },
        students: [{
            name: 'Jon Doe',
            age: '22'
        },{
            name: 'Mike Wilson',
            age: '32'
        },{
            name: 'David',
            age: '28'
        }]
}

Output:

university: Oxford
batch: 2019-2020
address street: 144 Main
address city: London
address country: UK
address contact fax: XXXXXX
address contact phone: YYYYY
students 1 name: Jon Doe
students 1 age: 22
students 2 name: Mike Wilson
students 2 age: 32
students 3 name: David
students 3 name: 28
+1 vote

When I use multi-home function to setup link between 2 fedora 18 hosts, I can not use sctp_sendmsg to send any message and return error "Invalid Parameters" . but the same program runs well in Centos 6.

And the most wired thing is when I run Server side in centos and run Client side in fedora, I have the problem, but everything is fine when I run client side in centos but run server side on fedora.

Does anyone has the same problem?

+1 vote

I have a problem in that at first all my log files were dated 12-31-1969 and logrotate has:

# more /var/lib/logrotate.status
logrotate state -- version 2
"/var/log/yum.log" 1969-12-31-20:26:1
"/var/named/data/named.run" 1969-12-31-20:26:1
"/var/log/httpd/error_log" 2015-8-27-4:43:1
"/var/log/wtmp" 1969-12-31-20:26:1
"/var/log/chrony/*.log" 2015-8-19-22:0:0
"/var/log/spooler" 1969-12-31-20:26:1
"/var/log/btmp" 1969-12-31-20:26:1
"/var/log/maillog" 1969-12-31-20:26:1
"/var/log/wpa_supplicant.log" 2015-8-19-22:0:0
"/var/log/secure" 1969-12-31-20:26:1
"/var/log/ppp/connect-errors" 2015-8-19-22:0:0
"/var/log/messages" 1969-12-31-20:26:1
"/var/log/cron" 1969-12-31-20:26:1
"/var/log/httpd/access_log" 2015-8-27-4:43:1

How do I get this file rebuilt with the dates currently on the files listed?

...