命令Linux系统常用的查看命令(操作系统范文)

常用操作系统  时间:2021-02-28  阅读:()

Linux系统常用的查看命令

文档信息

主题 关于“IT计算机”中“l inux或Unix相关”的参考范文。

属性 F-0AFA9Tdoc格式正文3570字。质优实惠欢迎下载

适用

目录

目录. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1

正文. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1

查看系统版本命令. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1

查看内存相关. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3

查看cpu相关. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4

查看硬盘相关. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7

正文

Linux系统常用的查看命令

Linux是一个神奇而又高效的操作系统学完Linux对Linux系统有一个熟悉的了解后你需要了解下这些实用的`查看系统信息的命令。

查看系统版本命令uname

谈到系统版本就一定会想到uname查看系统内核版本

uname -参数

其他的什么-n -m-r参数都忽略直接-a

[root@l inuxprobe~]#uname-a

Linux_64#1SMPTueJan29 11:47:41 EST 2013x86_64x86_64x86_64 GNU/Linux

[root@l inuxprobe~]

从uname中貌似确实看到了许多信息但是好像并丌是我想要的没有哪个系统的哪个版本lsb_release-a

[root@l inuxprobe~]#lsb_release -a

LSBVeion: :

Distributor ID:RedHatEnterpriseServer

Description:Red Hat Enterprise Linux Server release(Santiago)

Release:

Codename:Santiago

[root@l inuxprobe~]

cat/etc/issue

[root@l inuxprobe~]#cat/etc/issueRed Hat Enterprise LinuxServer release(Santiago)Kernel on an m

[root@l inuxprobe~]

查看内存相关f re e

一谈到Linux的内存就想到了一个命令free在课本第2章新手必须掌握的Linux命令中有对此的解释

[root@l inuxprobe~]#free total used free shared buffecachedMem:669360028060266936

-/+ buffecache: 374364

Swap:0

[root@l inuxprobe~]#free -mtotal used free shared buffe cached

Mem:51066534452027260

-/+ buffecache: 3654740

Swap:409504095

[root@l inuxprobe~]#free -gtotal used free shared buffe cached

Mem:404000

-/+ buffecache:04

Swap:303

[root@l inuxprobe~]

很明显内存大小使用多少剩余多少 buffe和cached多少以及swa p情况一目了然使用参数-m/-g可以指定单位

查看cpu相关uptime

[root@l inuxprobe~]#uptime

20:09:48 up43 min  3 use load average:  系统的平均负载 1分钟 5分钟 15分钟top

实时监控系统的cpu和内存默认3s刷新一次

[root@l inuxprobe~]#top

top-20:15:41 up49 min  3 use load average:  Tasks:236total  1 running 235 sleeping  0 stopped  0zombieCpu(s):%us  %sy %ni  %id %wa  %hi  %si %stMem:ktotal  671136k used  k free 28324k buffe

Swap:k total  0k used kfree 267360kcached

PID USER PRNIVIRT RES SHRS%CPU%MEM TIME+COMMAND

1 root 2001936015361224 S 0: init

2 root 200000 S 0:kthreadd

3 root RT 0000 S 0:migratio0

4 root 200000 S 0:ksoftirqd/0

5 root RT 0000 S 0:migratio0

6 root RT 0000 S 0:watchdog/0

7 root RT0000 S 0:migratio1

8 root RT0000 S 0:migratio1

9 root 200000 S 0:ksoftirqd/1

10 root RT 0000 S 0:watchdog/1

11 root RT 0000 S 0:migratio2

12 root RT 0000 S 0:migratio2

13 root 200000 S 0: ksoftirqd/2

14 root RT 0000 S 0:watchdog/2

15 root RT 0000 S 0:migratio3

16 root RT 0000 S 0:migratio3

17 root 200000 S 0: ksoftirqd/3

18 root RT 0000 S 0:watchdog/3

19 root 200000 S 0:events/0cpu内存实时利用率以此为标准

查看cpu参数——文件 /proc/cpuinfo

[root@l inuxprobe~]#cat/proc/cpuinfo|grep "physical id" |u ni q|wc -l

2cpu个数

[root@l inuxprobe~]#cat/proc/cpuinfo|grep "cpu cores" | uniq

cpucores :2线程数

[root@l inuxprobe~]#cat/proc/cpuinfo|grep'model name'|uniqmodel name: Intel(R)Core(TM) i5-3230M CPU@cpu型号参数

查看硬盘相关df

[root@l inuxprobe~]#df

文件系统1K-块已用可用已用%挂载点

/devda24690402%/tmpfs 2241%/devhm

/devda199150325046152635%/boot

/devda6516040180164718124%/home

/devda365%/usr

[root@l inuxprobe~]#df -h以简单的看得懂的方式显示文件系统容量已用可用已用%%挂载点

/devda240G 459M 37G 2%/

tmpfs 224K 1%/devhm

/devda197M 32M 61M 35%/boot

/devda6504M 18M 461M 4%/home

/devda3 65%/usrfd i sk-l

[root@l inuxprobe~]#fdisk-lDisk/devda:GB  bytes255heads  63 sectotrack 13054 cyl inde

Units=cyl inde of 16065* 512 = bytes

Sector size(logical/physical):512 bytes/512 bytes

I/O size(minimum/optimal):512 bytes/512 bytes

Disk identifier:0x000f0739

Device Boot Start End Blocks Id System

/devda1* 1 13 10240083 Linux

Partition 1 does not end on cyl inder boundary。

/devda2 13 523583 Linux

/devda3 5235 575783 Linux

/devda4575713055 5 Extended

/devda5 5757628082 Linuxswap/Solaris

/devda662806345 52428883 Linux

[root@l inuxprobe~]#fdisk-l |grep Disk

Disk/devda:GB  bytes

Disk identifier:0x000f0739

[root@l inuxprobe~]

为提高学习交流本文整理了相关的操作系统范文有 《Linux系统查看命令od命令》、 《linux系统常用的系统信息查看命令》、 《Linux系统查看用户的7个命令》、

《Linux系统不VIM常用的命令》、 《Linux系统关机的命令》、 《Linux命令查看内容的技巧》、 《linux常用查看硬件设备信息命令》、 《使用w命令和uptime命令来查看Linux系统的负载》 读者可以在平台上搜索。

“Linux系统常用的查看命令”文档源于网络本人编辑整理。本着保护作者知识产权的原则仅供学习交流请勿商用。如有侵犯作者权益请作者留言或者发站内信息联系本人我将尽快删除。谢谢您的阅读不下载

PQ.hosting全线9折,1Gbps带宽不限流量VPS/€3/月,全球11大机房可选

Hostadvice主机目录对我们的服务进行了测试,然后给PQ.hosting颁发了十大WordPress托管奖。为此,宣布PQ.Hosting将在一周内进行折扣优惠,购买和续订虚拟服务器使用优惠码:Hostadvice ,全部优惠10%。PQ.hosting,国外商家,成天于2019年,正规公司,是全球互联网注册商协会 RIPE 的成员。主要是因为提供1Gbps带宽、不限流量的基于KVM虚拟的V...

Megalayer美国服务器CN2优化线路30M带宽3独立IP限时月299元

Megalayer 商家算是比较新晋的国内主机商,主要方向是美国、香港、菲律宾等机房的独立服务器为主,以及站群服务器和显卡服务器。同时也有新增价格并不是特别优惠的VPS云服务器。上午的时候有网友问问有没有CN2线路的美国独立服务器的,这里我推荐他选择Megalayer看看,目前也是有活动截止到月底的。Megalayer 商家创办2年左右时间,如果我们初次使用建议月付体验。目前在进行且可能截止到6月...

HostKvm - 夏季云服务器七折优惠 香港和韩国机房月付5.95美元起

HostKvm,我们很多人都算是比较熟悉的国人服务商,旗下也有多个品牌,差异化多占位策略营销的,商家是一个创建于2013年的品牌,有提供中国香港、美国、日本、新加坡区域虚拟化服务器业务,所有业务均对中国大陆地区线路优化,已经如果做海外线路的话,竞争力不够。今天有看到HostKvm夏季优惠发布,主要针对香港国际和韩国VPS提供7折优惠,折后最低月付5.95美元,其他机房VPS依然是全场8折。第一、夏...

常用操作系统为你推荐
无线路由器限速设置无线路由器能设置限速吗?或者说那个牌子的能。万网核心代理我想买个域名和空间,我一朋友给我介绍万网代理环宇网络空间商,他们的空间稳定吗,价格怎么样,咨询师的服怎么在qq空间里添加背景音乐如何在qq空间中添加背景音乐今日热点怎么删除怎么删除手机百度实时热点唱吧电脑版官方下载电脑怎么安装唱吧,要能用的,请教教程,谢谢雅虎天盾有没有用用雅虎天盾的啊?虚拟专用网虚拟专用网适用于什么行业云挂机快手极速版后台云挂机辅?助各位用了吗?在哪找的?微信电话本怎么用微信电话本怎么使用呀,我的电话号码是存在手机里面,用这个软件就读取不了电话,我是第一次使用域名库电脑上文件有多少域名?各什么意思?
山东虚拟主机 免费域名注册 唯品秀 winhost 密码泄露 轻博 中国特价网 最好的空间 godaddy域名证书 域名转向 php空间推荐 ntfs格式分区 新家坡 135邮箱 中国电信宽带测速网 33456 新睿云 台湾google 网页提速 海外空间 更多