Tutorials

Get a list of all processes not run by you

Find the currently running processes on your system that were not started by yourself. A great way to find out what is hogging your system on multiple-user setups or remote logins.

Open up a terminal session and enter:

python
ps aux | grep -v `whoami`

ps aux returns (a) all processes with (u) user shown, (x) listing only those without controlling ttys. We then pass this through grep checking for the existance of your username retrieved with whoami

You can tweak this to show (for example) the only the top 10 processes by cpu utilisation as follows:

python
ps aux  --sort=-%cpu | grep -m 11 -v `whoami`

grep -m 11 stops searching after 11 matches (10th line) while ps --sort=-%cpu sorts on the cpu utilisation column (-) descending.

PyQt/PySide Office Hours 1:1 with Martin Fitzpatrick

Save yourself time and frustration. Get one on one help with your projects. Bring issues, bugs and questions about usability to architecture and maintainability, and leave with solutions.

Book Now 60 mins ($195)

Elsewhere

Control memcached from the command line
Find all files containing a given string
Collaborate in the shell with screen (multiuser)
Creating GUIs with PyQt - Lecture 12: Mozzarella Ashbadger - Navigation