Shell Script : Find Linux Memory Usage Of Application/Program

Discussion in 'Linux News' started by Rob, Jun 7, 2013.

  1. Rob

    Rob Administrator Staff Member

    Oct 27, 2011
    Likes Received:
    271 is a shell script that calculates linux memory usage for each program / application. Script outputs shared and private memory for each program running in linux. Since memory calculation is bit complex, this shell script tries best to find more accurate results. Script use 2 files ie /proc//status (to get name of process) and /proc//smaps for memory statistic of process. Then script will convert all data into Kb, Mb, Gb. Also make sure you install bc command. You can download linux memory usage script in pdf version also.

    Read the full article on


Share This Page