{"id":78665,"date":"2026-05-24T19:05:07","date_gmt":"2026-05-24T19:05:07","guid":{"rendered":"http:\/\/bangla.sitestree.com\/?p=78665"},"modified":"2026-05-24T19:05:08","modified_gmt":"2026-05-24T19:05:08","slug":"explain-get-process-select-nameidcpu-sort-cpu-descending","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=78665","title":{"rendered":"Explain: Get-Process | Select Name,Id,CPU | Sort CPU -Descending"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This command shows running processes with selected columns and sorts them by CPU usage\/time.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-Process | Select Name,Id,CPU | Sort CPU -Descending\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Meaning step by step<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. <code>Get-Process<\/code><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-Process\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Gets all running processes on the computer.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">2. Pipeline <code>|<\/code><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>|\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Passes the process objects to the next command.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">3. <code>Select Name,Id,CPU<\/code><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>Select Name,Id,CPU\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Short form of:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Select-Object Name, Id, CPU\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">It displays only these properties:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Property<\/th><th>Meaning<\/th><\/tr><\/thead><tbody><tr><td><code>Name<\/code><\/td><td>Process name<\/td><\/tr><tr><td><code>Id<\/code><\/td><td>Process ID<\/td><\/tr><tr><td><code>CPU<\/code><\/td><td>Total CPU seconds used by the process<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">4. <code>Sort CPU -Descending<\/code><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>Sort CPU -Descending\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Short form of:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Sort-Object CPU -Descending\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">It sorts the output by CPU from highest to lowest.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Full meaning<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-Process | Select Name,Id,CPU | Sort CPU -Descending\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">means:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Get all running processes, show only Name, Id, and CPU, then sort them from highest CPU time to lowest CPU time.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Better formal version<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-Process |\nSelect-Object Name, Id, CPU |\nSort-Object CPU -Descending\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Student comment<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># This command lists running processes, selects only the Name, Id, and CPU properties,\n# and sorts the results by CPU usage in descending order.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ref: AI Tools\/ChatGPT<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This command shows running processes with selected columns and sorts them by CPU usage\/time. Meaning step by step 1. Get-Process Gets all running processes on the computer. 2. Pipeline | Passes the process objects to the next command. 3. Select Name,Id,CPU Short form of: It displays only these properties: Property Meaning Name Process name Id &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=78665\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1981],"tags":[],"class_list":["post-78665","post","type-post","status-publish","format-standard","hentry","category-power-shell","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":78667,"url":"http:\/\/bangla.sitestree.com\/?p=78667","url_meta":{"origin":78665,"position":0},"title":"Variations of: Get-Process | Select Name,Id,CPU | Sort CPU -Descending","author":"Sayed","date":"May 24, 2026","format":false,"excerpt":"Yes. These commands produce the same type of output: process Name, Id, and CPU, sorted by CPU in descending order. Variation 1: Full cmdlet names Get-Process | Select-Object -Property Name, Id, CPU | Sort-Object -Property CPU -Descending Variation 2: Sort first, then select Get-Process | Sort-Object -Property CPU -Descending |\u2026","rel":"","context":"In &quot;Power Shell&quot;","block_context":{"text":"Power Shell","link":"http:\/\/bangla.sitestree.com\/?cat=1981"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":78675,"url":"http:\/\/bangla.sitestree.com\/?p=78675","url_meta":{"origin":78665,"position":1},"title":"Explain the command and each part : Get-Service * | Select-Object Status, DisplayName | Where-Object { $_.Status -eq &#8220;Running&#8221; -and $_.DisplayName -like &#8220;Windows*\u201c } | Sort-Object DisplayName -Descending | Format-Table -AutoSize","author":"Sayed","date":"May 24, 2026","format":false,"excerpt":"This command lists running Windows services whose display name starts with \u201cWindows\u201d, sorts them by display name in descending order, and displays the result in a neat table. Corrected version: Get-Service * | Select-Object Status, DisplayName | Where-Object { $_.Status -eq \"Running\" -and $_.DisplayName -like \"Windows*\" } | Sort-Object DisplayName\u2026","rel":"","context":"In &quot;Power Shell&quot;","block_context":{"text":"Power Shell","link":"http:\/\/bangla.sitestree.com\/?cat=1981"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":78337,"url":"http:\/\/bangla.sitestree.com\/?p=78337","url_meta":{"origin":78665,"position":2},"title":"Check Your Linux Knowledge","author":"Sayed","date":"July 27, 2025","format":false,"excerpt":"Linux Installation: Pre Assessment What do you need handy before installing Ubuntu in a Virtual Box 0 points Check all that apply. \u00a0Oracle Virtualbox Installed \u00a0ISO Image of the Linux \u00a0ISO Image in USB Drive What is usually the best place to download\/take a software to install? * 1 point\u2026","rel":"","context":"In &quot;Anything Linux&quot;","block_context":{"text":"Anything Linux","link":"http:\/\/bangla.sitestree.com\/?cat=1976"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/07\/image-8.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/07\/image-8.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/07\/image-8.png?resize=525%2C300 1.5x"},"classes":[]},{"id":78625,"url":"http:\/\/bangla.sitestree.com\/?p=78625","url_meta":{"origin":78665,"position":3},"title":"Polished: How to Find and Import Cisco Router Images (BIN\/IMAGE) Into GNS3","author":"Author-Check- Article-or-Video","date":"November 26, 2025","format":false,"excerpt":"Polished: How to Find and Import Cisco Router Images (BIN\/IMAGE) Into GNS3 (By ChatGPT) To use classic Cisco routers such as the 3725 in your GNS3 labs, you\u2019ll need the correct IOS image files. This guide explains where to find them, where to store them, and how to import them\u2026","rel":"","context":"In &quot;Computer Networks&quot;","block_context":{"text":"Computer Networks","link":"http:\/\/bangla.sitestree.com\/?cat=1978"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":76443,"url":"http:\/\/bangla.sitestree.com\/?p=76443","url_meta":{"origin":78665,"position":4},"title":"Linux: Disk Space, Memory Space, Running Processes","author":"Sayed","date":"December 8, 2024","format":false,"excerpt":"df command \u2013 Shows the amount of disk space used and available on Linux file systems. du command \u2013 Display the amount of disk space used by the specified files and for each subdirectory. free command top or htop command vmstat command dmidecode command \/proc\/meminfo file Linux commands show all\u2026","rel":"","context":"In &quot;Root&quot;","block_context":{"text":"Root","link":"http:\/\/bangla.sitestree.com\/?cat=1"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10494,"url":"http:\/\/bangla.sitestree.com\/?p=10494","url_meta":{"origin":78665,"position":5},"title":"Exec.java Provides static methods for running external processes from applications.","author":"","date":"August 29, 2015","format":false,"excerpt":"import java.io.*; \/** A class that eases the pain of running external processes \u00a0*\u00a0 from applications. Lets you run a program three ways: \u00a0* \u00a0 \u00a0\u00a0\u00a0\u00a0 *\u00a0\u00a0\u00a0 \u00a0 \u00a0\u00a0\u00a0 exec: Execute the command, returning \u00a0\u00a0\u00a0\u00a0 *\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 immediately even if the command is still running. \u00a0\u00a0\u00a0\u00a0 *\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 This would be appropriate\u2026","rel":"","context":"In &quot;Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8&quot;","block_context":{"text":"Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8","link":"http:\/\/bangla.sitestree.com\/?cat=1417"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78665","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=78665"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78665\/revisions"}],"predecessor-version":[{"id":78666,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78665\/revisions\/78666"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=78665"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=78665"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=78665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}