{"id":2306,"date":"2010-10-11T00:01:56","date_gmt":"2010-10-11T08:01:56","guid":{"rendered":"http:\/\/www.wambooli.com\/blog\/?p=2306"},"modified":"2010-10-10T15:55:37","modified_gmt":"2010-10-10T23:55:37","slug":"text-mode-task-manager","status":"publish","type":"post","link":"https:\/\/www.wambooli.com\/blog\/?p=2306","title":{"rendered":"Text Mode Task Manager"},"content":{"rendered":"<p>Here&#8217;s a really nerdy blog post for you: There is a command line version of the Windows Task Manager. Unlike the Task Manager window, with all its graphical fun and folly, the command line task manager is all about business.<br \/>\n<!--more--><br \/>\nTo start a command prompt window, from the Start menu choose All Programs, Accessories, Command Prompt.<\/p>\n<p>Though it appears in a graphical window, the command prompt is all about text mode operations for a computer, just as it was back in the old days. In fact, you can run your entire Windows computer from the command prompt. I know quite a few hardcore nerds who do just that.<\/p>\n<p>The Task Manager command is <code>tasklist<\/code>. When you type <strong>tasklist<\/strong> and press Enter, you&#8217;ll see a long, long list of all the tasks, processes, and such that are going on inside your computer.<\/p>\n<p>The list that the <code>tasklist<\/code> command outputs is meaningless by itself, but there are ways to manipulate the <code>tasklist<\/code> command so that it displays more useful information.<\/p>\n<p><code>tasklist \/fi \"status eq running\"<\/code><\/p>\n<p>The above command displays a list of only those running tasks.<\/p>\n<p><code>tasklist \/svc<\/code><\/p>\n<p>The above command displays a list of running services.<\/p>\n<p><code>tasklist \/m \/fi \"imagename eq cmd.exe\"<\/code><\/p>\n<p>The above command displays a list of modules used by a specific task, in this case the command prompt itself.<\/p>\n<p><code>tasklist \/m \/fi \"imagename eq rundll32.exe\"<\/code><\/p>\n<p>The above command displays the many things that the <code>rundll32.exe<\/code> task does, which is quite a few in Windows Vista.<\/p>\n<p><code>tasklist \/fi \"cputime gt 00:00:30\"<\/code><\/p>\n<p>The above command lists all the tasks that have been consuming more than 30 seconds of processing time. In other words, it lists the busy tasks.<\/p>\n<p><code>tasklist \/fi \"imagename eq svchost.exe\"<\/code><\/p>\n<p>The above command lists all the different instances of the <code>svchost.exe<\/code> process, which is always quite a few in WIndows.<\/p>\n<p>You can&#8217;t use the <code>tasklist<\/code> command to kill off a task, but you can use the <code>taskkill<\/code> command. Both command work together, one supplying information that can be used for the other.<\/p>\n<p>For example, to close your command prompt window, type this command at the prompt:<\/p>\n<p><code>taskkill \/f \/im cmd.exe \/t<\/code><\/p>\n<p>Poof! The window closes because the <code>cmd.exe<\/code> task, which is what&#8217;s running the command prompt, is summarily executed.<\/p>\n<p>There&#8217;s a lot more than can be done with the command prompt than most users realize. Like I said, it&#8217;s a great way to run your computer.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a really nerdy blog post for you: There is a command line version of the Windows Task Manager. Unlike the Task Manager window, with all its graphical fun and folly, the command line task manager is all about business.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-2306","post","type-post","status-publish","format-standard","hentry","category-main"],"_links":{"self":[{"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2306"}],"version-history":[{"count":6,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2306\/revisions"}],"predecessor-version":[{"id":2312,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2306\/revisions\/2312"}],"wp:attachment":[{"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}