Tag Info

Hot answers tagged


ps doesn't show network ports, at least not to my knowledge. The more appropriate command to use is netstat or lsof. For instance, if I want to see whether or not my ssh server is listening on port 22, I can do this: xieerqi@eagle:~$ sudo netstat -tulpan | grep ":22" [sudo] password for xieerqi: tcp 0 0* ...


You will have to send a Kill Signal SIGKILL with a value of 9 which terminates the process with a given Process ID. kill -9 PID Depending on the Job, if it is a background job, you may have to kill it by using kill -9 $! PID command. Alternatively, you can use the top command. Run Top command which will list all your Processes and then use k to kill the ...


I find using pkill more to the point: sudo pkill nano Instead of a process id, you give the process name to pkill, and it will attempt to terminate all the processes that match it. As with the kill command, you can resort to sending a SIGKILL signal rather than a SIGTERM if the process refuses to terminate gracefully: sudo pkill -9 nano


The "skeletal" view of programs can be given by pstree command. I suggest you use pstree -p to include PID of each process. To filter out a specific app, use grep in conjunction with -A flag, to show context after the matched string or -C to match context around the string. For example pstree -p | grep 'virtualbox' --color -A 4 to show 4 lines after ...

Only top voted, non community-wiki answers of a minimum length are eligible