Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1038171
  • 博文数量: 239
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 3618
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-12 13:17
文章分类

全部博文(239)

文章存档

2021年(1)

2016年(1)

2015年(30)

2014年(91)

2013年(116)

分类: LINUX

2014-02-19 00:04:07

这个很简单,只需要
>>> import pysysinfo
Gathering system information with uname command:


Linux oracle11g 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
Gathering diskspace information df command:


文件系统      容量  已用  可用 已用%% 挂载点
/dev/mapper/VolGroup-lv_root
                       50G   11G   37G  22% /
tmpfs                 1.9G  100K  1.9G   1% /dev/shm
/dev/sda1             485M   37M  423M   8% /boot
/dev/mapper/VolGroup-lv_home
                      5.6G  140M  5.2G   3% /home
df: "/mnt/hgfs": 输入/输出错误

可以看到系统信息。
阅读(648) | 评论(0) | 转发(0) |
0

上一篇:Python函数封装

下一篇:Python函数封装1

给主人留下些什么吧!~~