Nov-19-2018, 09:41 PM
It's cool to build own tools. Additionally you can explore linux and learn how to handle pathlib for example.
You should look here: http://tldp.org/LDP/Linux-Filesystem-Hie.../proc.html
def lspids(): pids = [] for path in pathlib.Path('/proc').iterdir(): if path.name.isdigit(): pids.append(int(path.name)) return pidsNow you can explore the subdirectories of pids in /proc.
You should look here: http://tldp.org/LDP/Linux-Filesystem-Hie.../proc.html
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!