资源描述:
《linux常用命令指南》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、Linux常用命令指南一、Linux系统入门2二、日常常用维护命令21)命令:top22)命令:ifconfig33)命令:route44)命令:netstat5三、VI文本编辑器操作51)VI简介52)进入与离开53)编辑54)举例6四、MR日常维护操作111)登录MR112)修改MR网卡IP地址、网关等113)重启MR进程(升级程序)124)检查内容1210一、Linux系统入门二、日常常用维护命令当前时间10:10am,运行2天19小时35分钟,当前有3个用户登录MR1)命令:top功能:查看当前系统运行时间,系统性能等参数权限:一般用户、root用
2、户均可执行举例:[ding@PM-2100~]$tp系统CPU、内存使用情况10:10amup2days,19:35,3users,loadaverage:0.00,0.00,0.16120processes:119sleeping,1running,0zombie,0stoppedCPUstates:10.4%user,0.4%system,0.0%nice,0.7%idleMem:903912Kav,894224Kused,9688Kfree,0Kshrd,97252KbuffSwap:1373516Kav,1108Kused,1372408Kfree
3、667940KcachedPIDUSERPRINISIZERSSSHARESTAT%CPU%MEMTIMECOMMAND9312root15010721072832R3.80.10:00top1root90476456440S0.00.00:14init系统当前运行进程信息列表2root90000SW0.00.00:00keventd3root1819000SWN0.00.00:00ksoftirqd_CPU04root90000SW0.00.00:00kswapd5root90000SW0.00.00:00bdflush6root90000SW0.00.
4、00:01kupdated14root90000SW0.00.00:00kjournald114root90000SW0.00.00:10kjournald115root90000SW0.00.00:03kjournald848root90568568484S0.00.00:00syslogd852root90428420376S0.00.00:00klogd863rpc90532532460S0.00.00:00portmap882rpcuser90720720632S0.00.00:00rpc.statd989root90139613121188S0.
5、00.10:01sshd1003root80904904772S0.00.10:00xinetd1021root9010721072916S0.00.10:00safe_mysqld1034root90420416372S0.00.00:01gpm1064mysql90580458042528S0.00.60:06mysqld1070root90749270286852S0.00.70:07httpd1081root90636632560S0.00.00:00pptpd1100root90608608536S0.00.00:00crond1130daemo
6、n90520512464S0.00.00:00atd1143root90404404356S0.00.00:00mingetty1144root90404404356S0.00.00:00mingetty1145root90404404356S0.00.00:00mingetty1146root90404404356S0.00.00:00mingetty101147root90404404356S0.00.00:00mingetty1148root90404396356S0.00.00:00mingetty8956root8014801480836S0.0
7、0.10:00tcsh8983ding9015801580932S0.00.10:00tcsh9083root9010121012836S0.00.10:00su9084root15014921492820S0.00.10:00tcsh9118root902525224M3080S0.02.70:03Sag19140root902435223M2872S0.02.60:00Sag21)命令:ifconfig功能:查看当前系统网络配置权限:一般用户、root用户均可执行举例:[root@MR-SIPTEST~]#ifconfigeth0Linkencap:E
8、thernetHWaddr00:09:6B:0F:EA:E3ine