Process Monitoring Commands

Duration: 8 min

This video lesson is available to enrolled students.

Return to /learn/UP-POLICE-COMPUTER-OPERATOR/emerging-technologies/linux-os/essential-commands/asset-process-monitoring-commands after enrolling

Inside: a video lesson and guided study material.

Module outline

  1. About the course: About the Course
  2. General Knowledge: Polity, Physics, Biology, State Wise GK, Chemistry, History, Geography, GK- Current Affairs, Indian Economy, Static General Knowledge, Environment, Evolution of Indian Banking (Banking & Financial Awareness)
  3. Mental Aptitude and Reasoning: Ratio and Proportion (Ratios), Divisibility Rules, Data Interpretation, Permutation and Combination, Number System, Sequence and Series (Series), Speed Time and Distance, Series (Number and Letter Series) (Numerical Relations and Reasoning), Coding Decoding, Data Sufficiency, Non Verbal Reasoning (Spatial Aptitude) (Spatial Reasoning) (Visual Reasoning), Vocabulary, Profit and Loss, Arithmetic, Mental Ability, Percentage, Algebra, Mensuration and Geometry, Age Problems, Clock, Calendar, Verbal Analogy (Word Based Analogy), Deductive and Inductive Reasoning (Logical Deduction and Induction) (Prepositional Reasoning), Analogy, Analytical Reasoning (Counting Figures Reasoning), Puzzle Solving (Puzzles), Selection Decision Table (Decision Making), Cubes & Dices, Blood Relations, Venn Diagram, Logical Sequence Of Words, Inequality, Directions (Direction Test), Data Arrangement, Facts, Inference and Judgements, Syllogisms, Seating Arrangements, Ranking, Order and Sequence
  4. CS | Computer Fundamentals: Basics of COA, Number System, Number Representation, C Fundamentals, Algorithm Analysis, Input Output Organisation
  5. CS | Database Management System: Basics of DBMS, ER Diagram, Relational Model & Functional Dependencies, Keys & Integrity Constraints, SQL
  6. CS | Workplace productivity Tools: MS Office Applications, Keyboard Shortcuts
  7. CS | Computer Networks: Introduction to CN, Data Communication, Data Link Layer - Ethernet, Net Layer: IPv4 & Proto, Net Layer: IP Addressing, Transport Layer Services, Application Layer, Hardware Basics, Network Security
  8. CS | The Internet: Website, Browser & Services, Internet Fundamentals, Web Design & Development, Web Publishing & Hosting, Server Side & Security, Emerging Technologies
  9. CS | Emerging Technologies: Artificial Intelligence, Emerging Tech Trends, Introduction to OS, Windows OS, Linux OS, Unix OS, JavaScript-Basics
  10. CS | Boolean algebra: Digital Systems & Boolean Basics, Boolean Expression, Boolean Minimization, Logic Gates & Hardware
  11. CS | Data Structures: Introduction to DS, Array, Stack, Queue
  12. CS | Cryptography: Society, Law & Ethics, Cyber Threats and Malware Attacks, Role of Internet and Web Services, Security in Mobile and Wireless Computing, Electronic Data Interchange and E-Commerce, Physical Security and Cryptography Basics, Intrusion Detection Systems (IDS), Cyber Safety and Security
  13. UP Police Previous Year Papers:
  14. UP Police Full Mock Tests:
AI summary & chapters

AI Summary

An AI-generated summary of this video lecture.

This lecture introduces Linux process monitoring commands, focusing on mpstat, pidof, pmap, ps, and top. The instructor uses a slide titled “Process Monitoring Commands” with a table listing each command, its purpose, and example terminal output. mpstat is shown reporting CPU utilization on a multiprocessor system using “mpstat 2 3,” with output columns such as %usr, %nice, %sys, %iowait, %irq, and %idle. pidof is demonstrated by “pidof nginx” returning PIDs 2456, 24157, and 2458, while “pidof sshd” returns 1120. pmap is shown with “pmap 2456,” displaying the memory map of an nginx master process, including Address, Kbytes, RSS, Dirty Mode, and Mapping columns. The lesson then transitions to ps and top: “ps -ef | head -5” provides a static snapshot of current processes, while “top” shows real-time interactive monitoring with load average, task counts, CPU/memory lines, and a live process table. The key distinction emphasized is that ps captures one-time process state, whereas top continuously updates process information.

Chapters

  1. 0:00 – 2:00 00:00-02:00

    The opening slide presents a table of process monitoring commands with columns “Command,” “What it Does,” and “Example (with Output).” The first rows cover mpstat, pidof, and pmap. On-screen terminal examples include “mpstat 2 3” with CPU columns such as %usr, %nice, %sys, %iowait, %irq, and %idle; “pidof nginx” returning “2456 24157 2458”; and “pmap 2456” showing an nginx process memory map.

  2. 2:00 – 5:00 02:00-05:00

    The instructor continues explaining the same command table, using red annotations to highlight important output details. A red box marks “(4 CPU)” in the mpstat header, a red underline and arrow point to “pidof nginx,” and a red circle surrounds the returned PIDs. The slide text defines mpstat as reporting CPU utilization on a multiprocessor system, pidof as returning the PID of a running process by name, and pmap as displaying the memory map of a process.

  3. 5:00 – 7:45 05:00-07:45

    The slide shifts to the ps and top commands. The example “ps -ef | head -5” lists processes such as systemd, kthreadd, rcu_gp, and nginx, while the “top” example shows load average, “Tasks: 189 total,” CPU and memory lines, and a process table including nginx and sshd. A bottom note states that ps provides a static snapshot of processes, while top provides real-time interactive process monitoring.

The lecture builds a practical overview of Linux process monitoring by pairing command definitions with concrete terminal output. The first part emphasizes system-level and per-process inspection: mpstat for CPU utilization, pidof for finding process IDs by name, and pmap for examining a process’s memory map. The second part contrasts two core monitoring tools: ps, which gives a static snapshot of current processes, and top, which provides continuous real-time monitoring. For exam revision, students should remember that mpstat reports multiprocessor CPU statistics; pidof maps process names to PIDs; pmap shows memory mappings for a given PID; ps -ef lists current processes in full format; and top is interactive, displaying live load average, task counts, CPU/memory usage, and per-process activity. The central teaching point is choosing the right tool: use ps for a one-time snapshot and top when ongoing, real-time process monitoring is needed.

Loading lesson…