当前位置:网站首页>Shell automatically obtains hardware information
Shell automatically obtains hardware information
2022-06-23 22:15:00 【Xiao Xu】
#!bin/bash
echo -e "------ os release ------"
cat /etc/redhat-release
cat /etc/issue | grep Linux
echo -e "\n ------ cpu physical ------"
cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l
echo -e "------ cpu info ------"
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
echo -e "------ cpu processor ------"
cat /proc/cpuinfo | grep "processor" | uniq | wc -l
echo -e "\n ------ os BIT ------"
getconf LONG_BIT
uname -m
echo -e "------ os type ------"
dmidecode |grep "Product"
echo -e "\n ------ os network ------"
ls /sys/class/net/
echo -e "------ virtual network ------"
ls /sys/devices/virtual/net/
echo -e "------ devices network ------"
ls /sys/class/net/ | grep -v "`ls /sys/devices/virtual/net/`"
echo -e "\n ------ os free ------"
free -h
echo -e "------ os disk ------"
df -h
echo -e "------ fdisk ------"
df -h|grep "/dev/"
fdisk -l|grep "/dev/"
echo -e "\n ------ L1d cache ------ "
lscpu | grep -i 'L1d cache \|L1d cache' | awk -F ':|:' '{print $2}'
echo -e "------ L1i cache ------"
lscpu | grep -i 'L1i cache \|L1i cache' | awk -F ':|:' '{print $2}'
echo -e "------ L2 cache ------"
lscpu | grep -i 'L2 cache \|L2 cache' | awk -F ':|:' '{print $2}'
echo -e "------ L3 cahce ------"
lscpu | grep -i 'L3 cache \|L3 cache' | awk -F ':|:' '{print $2}'边栏推荐
- Leetcode must review six lintcode (28348455116385)
- Error running PyUIC: Cannot start process, the working directory ‘-m PyQt5. uic. pyuic register. ui -o
- Ten thousand words! Understand the inheritedwidget local refresh mechanism
- Dart series: look at me for security. The security feature in dart is null safety
- Take you to understand the lazy loading of pictures
- BenchCLAMP:评估语义分析语言模型的基准
- Recommend several idea plug-ins
- Interpretation of opentelemetry project
- there can be only one auto column and it must be defined as a key
- How does the fortress machine log in to the production server? What is the function of the fortress machine?
猜你喜欢

ACL2022 | MVR:面向开放域检索的多视角文档表征

Installation and use of Minio

Smart cockpit SOC competition upgraded, and domestic 7Nm chips ushered in an important breakthrough

Code implementation of CAD drawing online web measurement tool (measuring distance, area, angle, etc.)

ICML2022 | 基于对比学习的离线元强化学习的鲁棒任务表示

University of North China, Berkeley University of California, etc. | Domain Adaptive Text Classification with structural Knowledge from unlabeled data
Performance optimization of database 5- database, table and data migration

Code implementation of CAD drawing online web measurement tool (measuring distance, area, angle, etc.)

Polar cycle graph and polar fan graph of high order histogram

Leetcode algorithm interview sprint sorting algorithm theory (32)
随机推荐
Dart series: smooth as silk, operating files and directories
Open source C # WPF control library -newbeecoder UI usage guide (I)
[tutorial] build a personal email system using Tencent lightweight cloud
Important announcement: Tencent cloud es' response strategy to log4j vulnerability
What is zero copy?
Acl2022 | MVR: multi view document representation for open domain retrieval
Manually push a message platform
什么是股票线上开户?手机开户安全么?
Teacher lihongyi from National Taiwan University - grade Descent 2
Tencent cloud server ubuntu18 installs MySQL and logs in remotely
北大、加州伯克利大學等聯合| Domain-Adaptive Text Classification with Structured Knowledge from Unlabeled Data(基於未標記數據的結構化知識的領域自適應文本分類)
Detailed explanation of lkadoc interface tool
How to improve the high concurrency of the server
Redis encapsulation instance
KnowDA: All-in-One Knowledge Mixture Model for Data Augmentation in Few-Shot NLP(KnowDA:用于 Few-Shot NLP 中数据增强的多合一知识混合模型)
PHP laravel 8.70.1 - cross site scripting (XSS) to cross Site Request Forgery (CSRF)
Detailed explanation of logical structure, physical structure and data operation
Apt attack
HDLBits-> Circuits-> Arithmetic Circuitd-> 3-bit binary adder
How to transfer files from the local fortress server