apt-get install
chmod 777 -R
rm
import os
os.remove('/Users/kungfu/Desktop/py_shell/test_for_rm')
mv
import os
os.rename(‘/Users/kungfu/Desktop/pyshell’, ‘/Users/kungfu/Desktop/py_shell’)
cd
pwd
ll
ls
import os
cwd = os.getcwd()
# 获取当前目录路径
file_list = os.listdir(cwd)
#过滤掉隐藏文件
r = [i for i in file_list if not i.startswith('.')]
# 排序及打印
r.sort()
for i in r:
print i
top
free
ps aux | grep redis
kill -9 11892
uname
import paltform
print platform.platform()