Refactor ps' output parsing to separate function

Since it could be useful for other commands
Add df command
Add time command
Add issue command