command line<\/a>. This is what it should look like:<\/p>\r\n\r\n\r\n\r\ntop - 03:29:24 up 53 min, 1 user, load average: 0.00, 0.00, 0.00\r\nTasks: 58 total, 1 running, 57 sleeping, 0 stopped, 0 zombie\r\n%Cpu(s): 0.2 us, 0.0 sy, 0.0 ni, 99.8 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st\r\nKiB Mem : 2097152 total, 1025376 free, 504424 used, 567352 buff\/cache\r\nKiB Swap: 0 total, 0 free, 0 used. 1485816 avail Mem\r\nPID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND\r\n1073 root 20 0 128404 1672 888 S 0.3 0.1 0:00.45 screen\r\n3160 root 20 0 157900 2156 1516 R 0.3 0.1 0:00.06 top\r\n 1 root 20 0 129484 3716 2412 S 0.0 0.2 0:03.03 systemd\r\n 2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd\/2306\r\n 3 root 20 0 0 0 0 S 0.0 0.0 0:00.00 khelper\/2306\r\n 57 root 20 0 39176 2816 2492 S 0.0 0.1 0:00.53 systemd-journal\r\n 63 root 20 0 42624 1740 1292 S 0.0 0.1 0:00.01 systemd-udevd\r\n(continued)<\/pre>\r\n\r\n\r\n\r\n\r\n
<\/figure>\r\n<\/div>\r\n\r\n\r\n\r\nIt can look a bit cluttered, but a lot of this information is very useful. For example, we can see how long the system has been running, the average load, how many users are logged in, how many processes (tasks) are running, sleeping, etc. as well as info on the amount of memory we have in total and available on the server. Top goes into even greater detail, down to a process-specific level. Each column displays a specific value that correlates with the process that is running. We can see who owns the process, how much memory it’s utilizing, how much of the CPU is being utilized, the command name, and the process ID, which is unique to that process and helps us identify it in case there’s more than one of the same process. Using all of this information, we can see exactly what each process is doing, and how many resources each process uses up, all in real-time.<\/p>\r\n\r\n\r\n\r\n
htop<\/h3>\r\n\r\n\r\n\r\n Htop is a lot like ‘top’ in terms of its core features and functionality. It is not usually included in a default operating system install, however, it is available for most if not all Linux distributions through its pre-installed software repositories. Like top, htop allows the user to view detailed information about each process, as well as keep tabs on the system itself. However, htop allows for much finer control over the information displayed to you, as well as offering a suite of utilities that can be applied to processes.<\/p>\r\n\r\n\r\n\r\n
For example, through htop, you can adjust the niceness (the priority) of a process, kill it with varying levels of force, and so on. There’s also sorting, which makes it easier to see only the information that is important to you. Selecting a process is possible using the space bar, making it easier to follow and keep track of a specific process (or processes, since you can select more than one at a time). And with a search function, it’s even easier to check and pay attention to specific processes. Htop even has a bar chart that represents the various system resources, allowing you to easily see how much CPU or RAM is allocated.<\/p>\r\n\r\n\r\n\r\n
Here’s an example of what htop looks like:<\/p>\r\n\r\n\r\n\r\n
1 [ 0.0%] Tasks: 35, 113 thr; 1 running\r\n2 [|| 1.3%] Load average: 0.01 0.05 0.01\r\nMem[||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 799M\/2.00G] Uptime: 4 days, 22:53:28\r\nSwp[ 0K\/0K]\r\n\r\n PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command\r\n 9357 mysql 20 0 1625M 196M 1944 S 0.7 9.6 4:54.66 \/usr\/sbin\/mysqld\r\n26708 root 20 0 26520 4092 1464 R 0.7 0.2 0:00.66 htop\r\n 1 root 20 0 129484 3716 2412 S 0.0 0.2 0:03.03 systemd\r\n(continued)\r\n<\/pre>\r\n\r\n\r\n\r\nWith the bars at the top, it’s easy to know how your system is doing with just a glance, along with customizable detailed info available just below them.<\/p>\r\n\r\n\r\n\r\n
\r\n
<\/figure>\r\n<\/div>\r\n\r\n\r\n\r\nBy using any of these tools, you can easily find the exact information that you need regarding your services and processes.<\/p>\r\n\r\n\r\n\r\n
PS.<\/span> If you liked this post on how to see which services are running in Linux, please share it with your friends through social media by using the share shortcuts, or simply leave a comment below. Thanks.<\/p>\r\n","protected":false},"excerpt":{"rendered":"Linux-based operating systems, like all other operating systems, have processes and services that run while the machine is on. These … <\/p>\n
Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":27590,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[27,1734,1733,1735],"yoast_head":"\nHow to List All Running Services in Linux | RoseHosting<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n \n \n \n \n \n\t \n\t \n\t \n