View the memory method used by a program under Linux

  
                  

When developing and operating maintenance on Linux, it is inevitable to check the memory usage of a certain program. There are a lot of commands that can meet our needs. Here are a few examples:

1:

top -p pid Viewing the program

2:

ps -aux

Copyright © Windows knowledge All Rights Reserved