simply parses outputs of important terminal commands, returning the important stuff.