import os

cmd = 'ls -al'

os.system(cmd) 


total 1571540
drwxr-x--- 26 root root        4096 Oct  4 01:22 .
drwxr-xr-x 33 root root        4096 Sep 20 01:17 ..
-rw-r--r--  1 root root  1462227520 Sep 17 01:45 ABR11A_ko-KR.exe
-rw-------  1 root root        2285 Sep 15 08:02 anaconda-ks.cfg
-rw-------  1 root root       16332 Sep 27 23:52 .bash_history
-rw-r--r--  1 root root          24 Jul 13  2006 .bash_logout
-rw-r--r--  1 root root         364 Sep 16 02:34 .bash_profile
-rw-r--r--  1 root root        1276 Sep 16 02:33 .bashrc
-rwxr-xr-x  1 root root          40 Oct  4 01:22 cmd.py

+ Recent posts