Start *top* command with memory sort? (or any other available field)
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Do you know where would I find the source code for top? Or which package is it part of? (which would help me to find the source code in the app repository)
[...]
No clue to where the project is...
Found something... debianish distributions have 'top' in the procps package.
My procps package has some more info:
Quote:
Estes são utilitários para navegar no sistema de arquivos /proc, que não é
um sistema de arquivos de verdade mas sim uma forma do núcleo ("kernel")
fornecer informações sobre o estado das entradas em sua tabela de
processos. (e.g. rodando, parado ou "zumbi"). São fornecidos tanto
utilitários em linha de comando quanto de tela cheia. É necessário ncurses
para utilitários em tela cheia. Mais informações podem ser encontradas no
site web do procps http://procps.sf.net/
Este pacote inclui os seguintes utilitários: top, uptime, tload, free,
vmstat, watch, skill, pmap, pgrep, slabtop e pwdx.
procps is the package that has a bunch of small useful utilities that give information about processes using the /proc filesystem. The package includes the programs ps, top, vmstat, w, kill, free, slabtop, and skill.
Version 3 includes NPTL thread support, a rewritten top, many bug fixes, performance improvements, and new features.
The latest release is procps-3.2.8.tar.gz. See the download page for past releases.
Do you mean which should you choose between just top or procps? I have procps installed because they are useful at times
I meant to ask which project to use: procps.sf.net (for the package I have top installed with) or that "unix-top" page you pointed to.
I have procps installed because it came with Ubuntu (I surely guess 'top' was not something added by other packages I installed. It was here before all of them).
But procps project page seems to be static since 2009? I have its last version! Skim my last posts... maybe you did not read them yet, since they were made quickly...
[...]
--
FYI, there are differing versions of top on various Linux distros, so you might want to make your A more specific. – slm♦ Nov 11 '14 at 15:58
--
[...]
Top (and a few other utilities) seems to be a nice mess...
I think I will just download the source code for my top and add a command line switch to give it another rc file. I imagine that should be easy enough... other similar suggestions are welcome!
Ah. Jessie (stable), Sid (unstable) and Stretch (testing) are just different releases of debian.
I found the link to the source code on sourceforge via wikipedia. Idk much about your system so it's hard to say which would be appropriate for you. I would go whatever route is easiest to obtain it from.
That link to gitlab looked recent As far as the differences between procps and procps-ng, this thread might be of interest
Last edited by TheEzekielProject; 01-02-2017 at 01:43 PM.
Ah. Jessie (stable), Sid (unstable) and Stretch (testing) are just different releases of debian.
I found the link to the source code on sourceforge via wikipedia. Idk much about your system so it's hard to say which would be appropriate for you. I would go whatever route is easiest to obtain it from.
That link to gitlab looked recent
I knew they were different releases. But I could not guess, without searching for it, which were what. Thank you! (=
Ubuntu used (or created) a very simple but effective idea: release names have alphabetical order - great!
I opened the gitlab page before making that post, it is active. I will compare the source got from there to the source of my system package. If compiling steps are easy and most (or all, I would wish) the same, great.
[arch-dev-public] Moving from procps to procps-ng?
Eric Bélanger snowmaniscool at gmail.com
Mon Apr 23 20:29:40 EDT 2012
Previous message: [arch-dev-public] Integrity Check x86_64: core, extra, community, multilib 20-04-2012
Next message: [arch-dev-public] Moving from procps to procps-ng?
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
The procps project didn't had any new release for a while and the
current package use a dozen of patches to fix miscellenaous things.
I'm thinking about switching to procps-ng[1]. Procps-ng is a fork of
procps by Debian, Fedora and openSUSE. Gentoo is also using procps-ng
(although, like Debian, the package is still named procps).
I also intend to replace the home made sysctl.conf that we currently
provide by the upstream version of that file.
Yes, I noticed those dates and the seemingly low number of downloads, but I'd bet most of the time top is installed from the procps package and that respository seems to be a standalone for top. Also notice on the main page "Last Update: 2016-02-03" so it does seem to be maintained. I also saw that first link was dead but the second was active and still seemed relevant. If you mentioned before I must have missed it, but what happens if you try, for instance:
Code:
top -o %MEM
?
Last edited by TheEzekielProject; 01-02-2017 at 02:39 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.