7 common commands to view Linux VPS host hardware configuration information

888u

Last update at :2024-06-15,Edit by888u

Snail is like many novice users. When choosing a Linux VPS host provider, they will roughly check whether the machine is used by anyone and its general reputation and cost performance, and then roughly compare the CPU core, memory, hard disk and traffic of the same machine. Do you know any merchants you know that have certain cost-effectiveness advantages? Although I often tell myself that you get what you pay for, sometimes I still prefer products that want the horse to be well but also want the horse to eat less grass.

Most users are not proficient in various VPS configuration information, merchants, and lines. Just like when we buy a computer, we may only know roughly some hardware configurations, whether they are compatible and suitable for us, we It may not be visible from the basic configuration, but most of it is the direct user experience, especially whether the VPS host is used for website building or project needs. The evaluation information used by others does not represent and is suitable for us. The self-test after delineating the approximate scope is necessary.

Let’s delve a little deeper into the configuration information of the Linux VPS host. We can’t just look at the basic memory, hard disk and traffic. In fact, netizens who are deeply involved in the game will even check and compare the hardware information. This belongs to fans. We basically Just play it and have a rough experience. In this article, Snail also learned to be more advanced and recorded the commands I saw used by some netizens to view the hardware information of the VPS/server environment. Maybe in the future, when purchasing VPS and servers, you can also install professionals.

First, CPU parameter information

cat /proc/cpuinfo

Second, Free command to view memory

free -m

Here we can see that the current VPS host has 512MB of memory and comes with 64MB of Swap storage.

Third, use the df command to view the hard disk

df -h

This needs to be compared with the configuration information given by the merchant when we purchased the VPS and server. Some friends said that they purchased 30GB. Why did they see 10GB? Where did the remaining 20GB go? There are also mounting disks that need to be mounted separately. Using fdisk -l, you can see that there are still 20GB that are not mounted. In this test machine, there is no mounting disk directly in one disk.

Fourth, check hardware information in Inxi

inxi-Fx

This is the first time I have used this Inxi tool. I saw that the introduction is very powerful and can view all server hardware information. Generally, it is not installed in the default release version. Here I installed it myself in the Debian environment.

Install Inxi For Debian/Ubuntu

echo \\'deb http://ppa.launchpad.net/unit193/inxi/ubuntu trusty main\\' > /etc/apt/sources.list.d/unit193-inxi.listapt-get updateapt-get install inxi

The above command can be executed only after installation.

Basic hardware information can be seen in the returned results. You will have time to play with the inxi tool alone in the future. Today I will briefly know that this thing exists, because I have never played this before.

Fifth, lshw

lshw -short

lshw is also a general tool that can view detailed information such as the current server CPU, memory, disk, etc. If it is not installed in the default environment, we can install it by executing the command.

apt-get install lshw && lshw

Sixth, dmidecode

This command is recorded in detail in the article "7 Tips for Using the dmidecode Command to View Linux Server Hardware Information", which is also used to view hardware information.

For example, the number of motherboards, memory, and memory modules can be seen through commands.

Seventh, lscpu

lscpu

You can see CPU and processing unit information through the lscpu command.

To summarize, the above 7 commands are what we may use when purchasing and evaluating VPS and server information. For ordinary users, they can just take a look at it like a snail. If you need to know in-depth details, you still need to be more detailed. In contrast, lspci and hdparm are also commonly used.

Recommended site searches: domain name registration official website, view ip address, vps dynamic ip server, vps server rental, Taiwan server rental, filing system, Dongguan server rental, Hong Kong server defense, Ministry of Industry and Information Technology filing query, free ip proxy server,

p>

7 common commands to view Linux VPS host hardware configuration information

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码