Categories: BasicsdebianUbuntu

Get detailed information about server hardware and partitions on Ubuntu

This short tutorial shows you 5 commands to get details about the system hardware of your PC, Notebook, or Server on Ubuntu and Debian.

CPU details on Linux

To get detailed information on the CPU, use this command:

cat /proc/cpuinfo

The output will look similar to this:

cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 107
model name      : AMD Athlon(tm) 64 X2 Dual Core Processor 5600+
stepping        : 2
cpu MHz         : 2900.171
cache size      : 512 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8legacy ts fid vid ttp tm stc [6]
bogomips        : 5945.45

Memory
Sponsored
usage

Get detailed information on memory usage:

cat /proc/meminfo

The result is:

MemTotal:      4116112 kB
MemFree:        470164 kB
Buffers:        154592 kB
Cached:        1658332 kB
SwapCached:        488 kB
Active:        2304500 kB
Inactive:      1017644 kB
HighTotal:     3243840 kB
HighFree:       183672 kB
LowTotal:       872272 kB
LowFree:        286492 kB
SwapTotal:     4200888 kB
SwapFree:      4197128 kB
Dirty:            4764 kB
Writeback:           0 kB
AnonPages:     1378960 kB
Mapped:         135580 kB
Slab:           289720 kB
PageTables:      16680 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:   6258944 kB
Committed_AS: 3779921956 kB
VmallocTotal:   118776 kB
VmallocUsed:     11892 kB
VmallocChunk:   106628 kB

Harddisk Usage

Information about disk usage

Sponsored
df -h

The result of the df command is:

Filesystem            Size  Used Avail Use% Mounted on
/dev/md2              375G   41G  315G  12% /
tmpfs                 2.0G     0  2.0G   0% /lib/init/rw
udev                   10M   52K   10M   1% /dev
tmpfs                 2.0G     0  2.0G   0% /dev/shm
/dev/md1              510M   37M  448M   8% /boot

Partition Layout

And the partitions:

fdisk -l

This command shows you the partition layout.

Disk /dev/sda: 85.8 GB, 85899345920 bytes
255 heads, 63 sectors/track, 10443 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000d6430

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       10255    82373256   83  Linux
/dev/sda2           10256       10443     1510110    5  Extended
/dev/sda5           10256       10443     1510078+  82  Linux swap / Solaris

The post Get detailed information about server hardware and partitions on Ubuntu appeared first on FAQforge.

Ubuntu Server Admin

Recent Posts

How to Install nvidia-smi on Ubuntu or Debian Linux

In this article, we will see how to install nvidia-smi on Ubuntu or Debian Linux.…

4 hours ago

How to Install clang tool on Ubuntu or Debian Linux

In this article, we will see how to install clang tool on Ubuntu or Debian…

1 day ago

How to resolve Ubuntu 20.04 Container Signature Errors on Raspberry Pi ARM Devices

When working with Docker containers on Raspberry Pi devices, you might encounter frustrating signature verification…

2 days ago

How to fix DNS Resolution Issues with OpenVPN on Ubuntu 18.04

You’ve recently upgraded to Ubuntu 18.04 and found that your OpenVPN connection no longer resolves…

2 days ago

How to Fix Ubuntu 18.04 System Monitor Launch Issues

Have you ever tried to open System Monitor on your Ubuntu 18.04 system only to…

3 days ago

What is System Hardening? Essential Checklists from OS to Applications

System hardening means locking down a system and reducing its attack surface: removing unnecessary software…

3 days ago