• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






freshbreeze

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 ··· 3 4 5 6 7 8 下一页

2013年5月21日

linux命令--top指令详解
摘要: top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器。下面详细介绍它的使用方法。top - 01:06:48 up 1:22, 1 user, load average: 0.06, 0.60, 0.48统计信息区前五行是系统整体的统计信息。第一行是任务队列信息,同 uptime 命令的执行结果。其内容如下:01:06:48 当前时间 up 1:22 系统运行时间,格式为时:分1 user 当前登录用户数 load average: 0.06, 0.60, 0.48 系统负载,即任务队列的平均长度。三个数值分别为 1分钟、5分钟 阅读全文
posted @ 2013-05-21 10:17 freshbreeze 阅读(238) 评论(0) 推荐(0)
 
linux命令--查看文件或文件夹大小
摘要: 使用ls -lht命令显示当前目录下的所有文件,其中有一列就是显示这个文件的大小。如果要看一个文件夹的大小,可以用du -sh * 阅读全文
posted @ 2013-05-21 10:16 freshbreeze 阅读(129) 评论(0) 推荐(0)
 
linux命令--查端口
摘要: netstat -anp| grep '6705'lsof -i:6705 阅读全文
posted @ 2013-05-21 10:02 freshbreeze 阅读(131) 评论(0) 推荐(0)
 
linux命令--创建用户
摘要: # groupadd -g 600 test(users组默认存在,这里用test代替,600表示组ID,可以自己修改,不冲突即可)# useradd -u 600 -g 600 usera# useradd -u 601 -g 600 userb# useradd -u 602 -g 600 userc# touch /tmp/users# chgrp test /tmp/users# chmod g+w /tmp/users默认新创建的文件只有所属者有写权限,这里所属者root,所以默认其他用户就没有写权限。linux151:/opt # useradd -g users -d /opt/ 阅读全文
posted @ 2013-05-21 10:00 freshbreeze 阅读(266) 评论(0) 推荐(0)
 
linux 命令--查看硬件信息
摘要: 查看CPU信息:cat /proc/cpuinfo查看内存信息:cat /proc/meminfo查看网卡等硬件信息: lspci |grep Ethemet查看SCSI控制器信息: lspci |grep SCSI查看Linux版本:lsb_release -a linux内核版本cat /proc/version 和 uname -rp单板类型检查:dmidecode |grep Product业务版类型 输出结果 ATAE AEFSA(R0) Be Filled By O.E.M. ATAE AWBSA(R2) WBS ATAE AHCSA/AHCSB(R2+) HCS ATAE AUP 阅读全文
posted @ 2013-05-21 09:58 freshbreeze 阅读(257) 评论(0) 推荐(0)
 

2013年5月14日

linux指令--内存相关free命令
摘要: linux141:~ # free --helpfree: invalid option -- '-'usage: free [-b|-k|-m|-g] [-l] [-o] [-t] [-s delay] [-c count] [-V] -b,-k,-m,-g show output in bytes, KB, MB, or GB -l show detailed low and high memory statistics -o use old format (no -/+buffers/cache line) -t display total for RAM + swap 阅读全文
posted @ 2013-05-14 16:57 freshbreeze 阅读(167) 评论(0) 推荐(0)
 
linux指令-动态查看系统资源情况
摘要: mpstat 2 查看CPU占用情况ps 监控进程状态(例如,是否有进程变为僵尸zombie状态)top 监控CPU,内存,进程等cat /proc/meminfo 监控总体内存使用状况 freenetstat -a 这个和windows下是一样的,监控网络连接状况查看磁盘空间:df -lh不同的linux系统有自己不同的监控工具,通用的一般有这些。1)CPU负荷命令:sar、mpstat(hpux,AIX)、top/topas、vmstat、w、uptime、ps2)虚拟内存使用(物理内存+交换区)命令:top/topas、vmstat、free、swapinfo(hpux)3)磁盘I/O命 阅读全文
posted @ 2013-05-14 16:52 freshbreeze 阅读(465) 评论(0) 推荐(0)
 
linux指令--查找Find
摘要: find /opt/SEE/profiles -name 'ssoconfig.xml'find / -name "run.sh"|xargs grep "Dlocal.timezone"find /home/mdsp/slcc * | xargs grep -l "SID=sdp"find /home/mdsp/as/config "*.cfg" | xargs grep "10.199.*"find /home/mdsp/slcc ".cfg" | xar 阅读全文
posted @ 2013-05-14 16:51 freshbreeze 阅读(160) 评论(0) 推荐(0)
 

2013年5月9日

linux指令--赋予文件或文件夹执行权限
摘要: chmod +x up.shchmod a+x 目录 -R 777 阅读全文
posted @ 2013-05-09 11:05 freshbreeze 阅读(869) 评论(0) 推荐(0)
 
linux指令--解压命令汇总
摘要: root@redhat ~]# tar -xf filetext.tar -C /home/redhat/[root@redhat ~]# tar -zxf filetext.tar.gz -C /home/redhat/(对使用gzip格式压缩的包进行解压缩)[root@redhat ~]# tar -jxf filetext.tar.bz /home/redhat/(对使用bzip2格式压缩的包进行解压缩)tar -xvzf wap_push_test.tar.gzLinux下自带了一个unzip的程序可以解压缩文件,解压命令是:unzip filename.zip 同样也提供了一个zip 阅读全文
posted @ 2013-05-09 11:02 freshbreeze 阅读(156) 评论(0) 推荐(0)
 
上一页 1 ··· 3 4 5 6 7 8 下一页