linux 常用命令收集

关机:poweroffshutdown -h nowinit 0

重启:rebootshutdown -r nowinit 6 

 

关闭x-window:init 3

启动x-window:init 5start x

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

1.终止命令:ctrl+c  

2.结束输入:ctrl+d

3.查看文件系统:df -lh

[jianbao@localhost ~]$ df -lh
文件系统          容量  已用  可用 已用%% 挂载点
/dev/sda1             9.9G  3.5G  6.0G  37% /
tmpfs                 350M  456K  350M   1% /dev/shm
/dev/sda2             4.0G  182M  3.6G   5% /home
sharing                98G  4.9G   93G   5% /media/sf_sharing
sharing                98G  4.9G   93G   5% /home/jianbao/1
/home/jianbao/htdocs   98G  4.9G   93G   5% /home/jianbao/htdocs
[jianbao@localhost ~]$

4.LAMP系列:

重启MySQL: /etc/init.d/mysqld restart ;重启Apache: /etc/init.d/httpd start

Apache的配置文件路径:/etc/httpd/conf/httpd.conf ;PHP配置文件路径: /etc/php.ini

++++++++++++++++++++++++++++++++++++++++++++

重启网络服务:service network restart


 

 

 


 

 

 

posted @ 2012-03-04 11:52  52linux  阅读(283)  评论(0编辑  收藏  举报