>>> subprocess.check_output(['ls', '-l']) b'total 0 -rw-r--r-- 1 memyself staff 0 Mar 14 11:04 files '