I want to sort the memory usage in top command as default. So that i do not have to sort in every i run top command.
How to do that?
Thanks in advance....
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
Start it with
top -o %MEM
You can create an alias:
alias top='top -o %MEM' in
~/.bashrc) for this.
top can save to a configuration using
W :Write-the-Configuration-File This will save all of your options and toggles plus the current display mode and delay time. By issuing this command just before quitting top, you will be able to restart later in exactly that same state.
It saves to
~/.toprc. Going back to default is the same as removing