Get just the PID of a running process.

How to get just the PID of a running process. There are a couple of very useful ways to get the Process ID of a running process. This is a way using grep and awk. This prints multiple numbers if there are multiple related processes running, like the Apache2 server…

Read More

Get just the number of processes on your Linux machine.

This command will print the number of running processes on a Linux system. 4.4 Tue Oct 30 jason@Yog-Sothoth 0: $ ps aux | wc -l 2554.4 Tue Oct 30 jason@Yog-Sothoth 0: $ ps aux | wc -l 255 Here is a nice alternative that will work on Ubuntu. The landscape-common…

Read More

Managing processes with the UNIX command line.

The Linux command-line has many powerful tools for viewing and managing running processes on your UNIX/Linux machine. The lsof command is a very useful command, it will display a list of all open files owned by active processes running on your system. Below is an excerpt from the output this…

Read More

Killing a running task in Windows 7.

Killing a running task UNIX style in Windows 7 is very easy indeed, the tasklist command makes this just as easy as it is in UNIX/Linux.Just type tasklist in the command prompt and it will display a list of running processes. Then look for the PID of the process you…

Read More