http://www.google.com/support/forum/p/earth/thread?tid=7b1b524777b9b982&hl=en
命令行的好处就是能看见程序的输出,知道哪里出了问题,然后着手解决。不错不错。
ubuntu用的越来越得心应手了
cat /proc/cpuinfo - 查看cpu信息;
cat /proc/meminfo - 查看内存信息;
free - 显示内存和交换去情况;
df - 显示硬盘空间占用情况;
du - 显示目录空间占用情况;
uname -a -显示内核信息;
uptime - 显示系统从开机到现在所运行的时间;
w - 显示登录的用户;
2、bootchart
Bootchart is a tool for performance analysis and visualization of the GNU/Linux boot process. Resource utilization and process information are collected during the boot process and are later rendered in a PNG, SVG or EPS encoded chart.
简单来讲,bootchart对ubuntud的启动进行了一个综合性的分析,并且生成了一张形象的图表,声称png格式的图片,在/var/log/bootchart目录下;这是我的ubuntu 8.10的启动图表,如下:
bootchart的安装非常简单:
3、有了bootchart工具,我们可以针对性地进行系统优化,加快系统启动速度。有个小工具:
安装完毕用sudo运行,前一个命令可以设置服务的等级(?),sysvconfig可以禁用某些系统启动服务,加快系统的启动速度,至于哪些服务该禁用,参见上一篇ubuntu优化。截图就不上了,firefox写hexun blog上传图片有问题,搞的我bootchart那张图片都是先截下来然后上传到picasa web album然后又引用过来的。sysvconfig具体的截图看这个连接,呵呵。sysv-rc-conf看ChinaUnix的这篇文章,很赞。
恩,先写到这里。
命令行的好处就是能看见程序的输出,知道哪里出了问题,然后着手解决。不错不错。
ubuntu用的越来越得心应手了
tips:
1、some useful commands:cat /proc/cpuinfo - 查看cpu信息;
cat /proc/meminfo - 查看内存信息;
free - 显示内存和交换去情况;
df - 显示硬盘空间占用情况;
du - 显示目录空间占用情况;
uname -a -显示内核信息;
uptime - 显示系统从开机到现在所运行的时间;
w - 显示登录的用户;
2、bootchart
Bootchart is a tool for performance analysis and visualization of the GNU/Linux boot process. Resource utilization and process information are collected during the boot process and are later rendered in a PNG, SVG or EPS encoded chart.
简单来讲,bootchart对ubuntud的启动进行了一个综合性的分析,并且生成了一张形象的图表,声称png格式的图片,在/var/log/bootchart目录下;这是我的ubuntu 8.10的启动图表,如下:
bootchart的安装非常简单:
sudo apt-get install bootchart |
sudo apt-get install sysv-rc-conf sysvconfig |
恩,先写到这里。