zoukankan
html css js c++ java
Linux系统信息查看
Linux系统信息查看
转自:http://blog.chinaitlab.com/html/31/1365331-180901.html
查看redhat版本:
cat /etc/redhat-release
或者
cat /etc/issue
系统
# uname -a # 查看内核/操作系统/CPU信息
# head -n 1 /etc/issue # 查看操作系统版本
# cat /proc/cpuinfo # 查看CPU信息
# hostname # 查看计算机名
# lspci -tv # 列出所有PCI设备
# lsusb -tv # 列出所有USB设备
# lsmod # 列出加载的内核模块
# env / set # 查看环境变量
资源
# free -m # 查看内存使用量和交换区使用量
# df -h # 查看各分区使用情况
# du -sh <目录名> # 查看指定目录的大小
# grep MemTotal /proc/meminfo # 查看内存总量
# grep MemFree /proc/meminfo # 查看空闲内存量
# uptime # 查看系统运行时间、用户数、负载
# cat /proc/loadavg # 查看系统负载
磁盘和分区
# mount | column -t # 查看挂接的分区状态
# fdisk -l # 查看所有分区
# swapon -s # 查看所有交换分区
# hdparm -i /dev/hda # 查看磁盘参数(仅适用于IDE设备)
# dmesg | grep IDE # 查看启动时IDE设备检测状况
网络
# ifconfig # 查看所有网络接口的属性
# iptables -L # 查看防火墙设置
# route -n # 查看路由表
# netstat -lntp # 查看所有监听端口
# netstat -antp # 查看所有已经建立的连接
# netstat -s # 查看网络统计信息
进程
# ps -ef # 查看所有进程
# top # 实时显示进程状态
用户
# w # 查看活动用户
# id <用户名> # 查看指定用户信息
# last # 查看用户登录日志
# cut -d: -f1 /etc/passwd # 查看系统所有用户
# cut -d: -f1 /etc/group # 查看系统所有组
# crontab -l # 查看当前用户的计划任务
服务
# chkconfig --list # 列出所有系统服务
# chkconfig --list | grep on # 列出所有启动的系统服务
程序
# rpm -qa # 查看所有安装的软件包
完!
作者:
iTech
微信公众号: cicdops
出处:
http://itech.cnblogs.com/
github:
https://github.com/cicdops/cicdops
查看全文
相关阅读:
[Chapter 3 Process]Practice 3.4 Describe what happens when a context switch occurs if the new context is already loaded into one of the register sets.
[Chapter 3 Process]Practice 3.3 Discuss three major complications that concurrent processing adds to an operating system.
爬取:中国大学排名
基础统计学--复习
pandas之数据结构
numpy之初探排序和集合运算
numpy之统计函数和布尔数组方法
numpy之meshgrid和where
numpy之通用函数ufunc
numpy之转置(transpose)和轴对换
原文地址:https://www.cnblogs.com/itech/p/1552780.html
最新文章
python中json文件处理涉及的四个函数json.dumps()和json.loads()、json.dump()和json.load()的区分
shell 中 if then语句中会跟着-ne -ge之类的参数的含义
静态类和单例模式区别
深入理解DIP、IoC、DI以及IoC容器
TFS开发发布控制
.net IL 指令速查
SqlServer优化博客网址
SQL Server2012新特性
SQL Server2014新特性
Emit学习(1)-Emit概览
热门文章
linux下源码安装软件
在.Net中进行跨线程的控件操作(下篇:BackgroundWorker)
[MySQL]load data local infile向MySQL数据库中导入数据时,无法导入和字段不分离问题。
电路交换和分组交换的区别
Vrapper-Eclipse的vim插件安装方法
[更新中]并发和并行(Concurrency and Parallelism)
[Chapter 3 Process]Practice 3.12 Including the initial parent process, how many processes are created by the program shown in Figure 3.32?
[Chapter 3 Process]Practice 3.9 Describe the actions token by a kernel to content-switch between processes.
[Chapter 3 Process]Practice 3.8: Describe the differences among short-term, medium-term, long-term scheduling
[Chapter 3 Process]Practice 3.5 When a process creates a new process using the fork() operation
Copyright © 2011-2022 走看看