Commands to check memory usage on Linux

linux में commands का imporatant place है क्यों की server के लिए ज़्यादातर terminal का ही use होता है तो आइये देखते हैं की वो कौन से commands है जिसका use कर हम linux machine में memory usage को देख पाएंगे . memory में ram और swap include होता है

free command

linux पर memory usage को check करने के लिए frequently हम free command का use कर लेते हैं . यहाँ पर m ,MB को denote कर रहा है यहाँ पर आपको 987 mb show हो रहा है ,255 mb system के द्वारा use हो रहा है 731 mb free है ।second line में buffer/cache memory द्वारा 158 mb use हो रहा है और 829 mb free है third line swap memory को denote कर रहा है जो की पूरा free है

2. /proc/meminfo

/proc/meminfo file को read कर के भी memory usage का पता लगा सकते हैं

3. vmstat

memory usage को देखने के लिए vmstat command का use कर सकते हैं

4. top command

top command को generally तब use करते हैं जब हमें यह पता करना होता है की कोई particular process कितनी memory use कर रहा है आप KiB Mem and KiB Swap lines को check कर सकते हैं जो की total, used and free amounts of the memory को show कर रहा है

Leave a Reply

Your email address will not be published. Required fields are marked *