Quote Originally Posted by atreyu View Post
You can use ~/.toprc to make top always run with certain settings (like pressing M). When top is running, press M, then press W and it will save your configuration to ~/.toprc. Next time you run top, it should have those settings you've said from the previous top session.
Yes, I have tried generation ~/.toprc this method which runs good in my linux terminal. But it maybe some drawback which can be used only under my linux environment.
if somebody also want to descend sort memory, he must use the same way to get a ~/.toprc file.
this method with poor replicability and portability!