FreeBSD 13.2 find hardware info: Difference between revisions

From CompleteNoobs
Jump to navigation Jump to search
AwesomO (talk | contribs)
Created page with "== FreeBSD 13.2 Find Hardware Info == This page details how to retrieve hardware information on FreeBSD 13.2 using built-in commands and optional tools from the ports collection. Tested as of March 08, 2025. == RAM and Swap Info == To check memory (RAM) and swap usage: * '''Total RAM:''' Display total physical memory in bytes: <code>sysctl hw.physmem</code> Example output (8GB in bytes): <pre> hw.physmem: 8589934592 </pre> * '''Memory Statistics:''' Show active..."
 
(No difference)

Latest revision as of 20:20, 8 March 2025

FreeBSD 13.2 Find Hardware Info

This page details how to retrieve hardware information on FreeBSD 13.2 using built-in commands and optional tools from the ports collection. Tested as of March 08, 2025.

RAM and Swap Info

To check memory (RAM) and swap usage:

  • Total RAM: Display total physical memory in bytes:

sysctl hw.physmem

Example output (8GB in bytes):

  hw.physmem: 8589934592
  
  • Memory Statistics: Show active, inactive, wired, and free memory:

vmstat -m

Example output:

  procs memory page disks faults cpu
  r b w avm fre flt re pi po fr sr da0 cd0 in sy cs us sy id
  0 0 0 2.0G 710M 143 0 0 0 216 147 0 0 93 842 701 1 1 98
  
  • Swap Usage: Display swap space in human-readable format:

swapinfo -h

Example output:

  Device       1K-blocks  Used  Avail  Capacity
  /dev/ada0s1b 1048540    736K  1.0G   0%
  

Hard Drive Space Info

To check disk space usage for mounted filesystems:

df -h

  • -h: Displays sizes in human-readable format (e.g., GB, MB).

Example output:

Filesystem     Size  Used  Avail  Use%  Mounted on
/dev/ada0s1a   20G   5G    15G    25%   /

CPU Info

To display CPU details:

  • Basic CPU Info: Show CPU model and core count:

sysctl hw.model
sysctl hw.ncpu
Example output:

  hw.model: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
  hw.ncpu: 4
  
  • Detailed CPU Info: Extract CPU data from boot messages:

dmesg | grep CPU

Example output snippet:

  CPU: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (1600.00-MHz K8-class CPU)
  

Motherboard Info

To get motherboard details (vendor, product name, version):

sudo dmidecode -t baseboard

  • Requires installation: sudo pkg install dmidecode.
  • Example output:
Base Board Information
  Manufacturer: Dell Inc.
  Product Name: 0F6X5P
  Version: A00

Additional Useful Hardware Info

Here are more commands for a complete hardware overview:

List Block Devices (Disks and Partitions)

Shows all block devices like hard drives and SSDs:

camcontrol devlist

Example:

<Samsung SSD 860 EVO mSATA 1TB RVT41B6Q> at scbus1 target 0 lun 0 (ada0,pass0)

Alternatively: geom disk list

GPU/Graphics Card Info

To check graphics hardware:

pciconf -lvc | grep -i vga

Example:

vgapci0@pci0:0:2:0: class=0x030000 card=0x12345678 chip=0x12345678 rev=0x02 hdr=0x00

Network Hardware

List network interfaces and hardware:

pciconf -lvc | grep -i network

Example:

em0@pci0:3:0:0: class=0x020000 card=0x12345678 chip=0x12345678 rev=0x01 hdr=0x00

Full Hardware Summary

For a complete hardware overview:

dmesg | less

  • Shows boot-time hardware detection.

Alternatively: sysctl -a | less

  • Lists all system parameters, including hardware.

Notes

  • Commands like dmidecode require installation via sudo pkg install dmidecode.
  • Some tools (e.g., lshw, lscpu) are available in the ports collection but not installed by default.
  • Use sudo for commands needing root privileges.
  • Tested on FreeBSD 13.2 as of March 08, 2025.

Citations

SEO

SEO Keywords if searching for this page:

How do I check RAM usage in FreeBSD? How do I see swap space in FreeBSD? How do I find disk space in FreeBSD? How can I get CPU details in FreeBSD? How do I check motherboard info on FreeBSD? How do I list disks and partitions in FreeBSD? How do I find graphics card info in FreeBSD? How do I see network hardware in FreeBSD? How do I get a full hardware summary in FreeBSD? What command shows memory in FreeBSD? How do I view human-readable disk space in FreeBSD? How do I install tools to check hardware in FreeBSD?