ShellSpells
  • 🧙‍♂️Welcome!
    • ShellSpells
    • FAQs
    • License & Disclaimer
  • 🐧Linux
    • System Ops
      • Transcripts
      • Help
      • System Info
        • Date/Time
        • System Details
        • Patches & Updates
        • Init System Identification
        • Hostname / Host ID
        • Variables
        • Hardware & Resources
      • Filesystem
        • Traverse & Enumerate
        • Drives & Partitions
        • Shares
        • Packages
        • Connected Devices
        • Kernel Modules (Drivers)
      • Users & Groups
        • Enumerate
        • Modify
      • Network
        • Enumerate
        • Modify
      • Scheduled Jobs
        • Enumerate
        • Modify
      • Processes
        • Enumerate
        • Modify
        • Custom Script and Shared Object
        • Process I/O Redirection
      • Services
        • Enumerate
        • Modify
        • Create a Service
      • Startup/Boot Scripts
        • Enumerate
        • Modify
      • Security
        • Antivirus
        • Firewall
        • SSH Keys
      • History & Logs
        • History
        • Logs
    • File Ops
      • Search
        • Filename
        • Content
        • Users (Owners)
        • Time
        • Size
        • Permission
        • Hidden Files
        • Inode
        • Find + Exec
        • Notes
      • Enumerate Metadata
      • Modify Metadata
      • Read Content
      • Modify Content
      • Extract Content
      • Sort / Compare / Count
      • Move
      • Copy
      • Execute
      • Hash
      • Encode/Decode
      • Compress/Decompress
      • Working With Weird Filenames
    • Terminal Ops
      • Keyboard Shortcuts
      • Tmux Shortcuts
  • 🪟Windows
    • System Ops
      • Transcripts
      • Help
      • System Info
        • One-liners
        • Date/Time
        • System Details
        • Hotfixes
        • Domain or Workgroup
        • Data Execution Prevention
        • Variables
        • Hardware & Resources
      • Filesystem
        • Traverse & Enumerate
        • Drives & Partitions
        • Installed Software
        • Drivers
        • Shares
      • Registry
        • Enumerate
        • Modify
        • Forensically Relevant Keys
      • Users & Groups
        • Enumerate
        • Modify
      • Network
        • Enumerate
        • Modify
      • Scheduled Tasks
      • Processes
        • Enumerate
        • Modify
      • Services
        • Enumerate
        • Modify
      • Autorun / Startup
        • Enumerate
        • Modify
      • Security
        • Permissions
          • Enumerate
          • Page
        • Antivirus
        • Firewall
          • Enumerate
          • Modify
        • Audit Policies
        • Remoting
          • Enumerate
          • Modify
          • Registry Locations
        • Stored Credentials
      • Remote Command Execution
      • Active Directory
        • Enumerate
        • Modify
      • History & Logs
        • History
        • Logs
      • PowerShell Config
      • Scripting
      • WMIC Notes
    • File Ops
      • Search
        • Filename
        • Time
        • Size
        • Permissions
        • Attributes
        • Wildcarding
      • Enumerate Metadata
        • One Liners
        • Users (Owners)
        • Timestamps
        • Size
        • Permissions
        • Attributes
      • Modify Metadata
        • Change Owner
        • Timestamps
        • Size
        • Attributes
      • Read Content
      • Modify Content
        • Overwrite
        • Insert
        • Append
        • Replace / Remove
        • Convert Case
        • Alternate Data Streams
      • Extract Content
      • Sort / Compare / Count
        • Sort
        • Count
        • Compare
      • Move
      • Copy
      • Execute
      • Hash
      • Encode/Decode
      • Compress/Decompress
      • Working With Weird Filenames
      • Output Formatting / Filtering
      • File Formatting
      • Operators
  • ⛓️Network
    • Traffic Manipulation
      • iptables
        • Option List
        • General Commands
        • Filter Tables
        • NAT
        • Mangle
        • Filter for SSH Traffic (Example)
      • nftables
    • Packet Capture
      • Syntax
      • TCPDump Examples
    • Packet Analysis
      • Wireshark
  • 🚗Maneuver
    • SSH
    • Control Sockets
    • RDP
    • Windows Port Proxy
  • 🛩️Data Transfer
    • SCP
    • FTP
    • Netcat
      • Netcat Relays
    • Server Interactions
    • Alternate Methods
  • 🪄REGEX
    • Examples
Powered by GitBook
On this page
  • Commands
  • Solaris
  • File Locations
  • /proc
  • /sys
  • /dev
  • dmesg

Was this helpful?

  1. Linux
  2. System Ops
  3. System Info

Hardware & Resources

Commands

inxi

(Not on all systems) Comprehensive hardware and system information.

lshw

Hardware details

uname -m

Machine architecture

uname -v

Kernel version

uname -o

OS

uname -i

Hardware platform

lscpu

CPU

cat /proc/cpuinfo

CPU

uname -p

Processor type

cat /proc/meminfo

Memory

free -m

Displays free and used memory in megabytes.

vmstat

Virtual memory

df -h

Disk space usage

df -h

Disk space usage in human-readable format.

ncdu

Disk usage analyzer

lsblk

List block devices

dmidecode

Info from SMBIOS/DMI tables (motherboard, BIOS, memory, etc.) (requires root privileges).

fdisk -l

Lists disk partitions (requires root privileges).

lspci

Lists all PCI devices.

lsusb

Displays USB devices.

ip addr

Shows network interface information and IP addresses.

du

Estimate file and directory space usage.

Solaris

psrinfo -v

Displays processor information.

modinfo -c

Lists all the kernel modules.

File Locations

Note: /proc and /sys provide real-time data direct from the kernel and can't be modified by a user. Access to certain files within these directories may require sudo privileges.

/proc

/proc/cpuinfo

Information about CPUs.

/proc/meminfo

Memory-related information.

/proc/loadavg

Load average statistics.

/proc/uptime

System uptime.

/proc/version

Kernel version.

/proc/net/

Network-related information.

/proc/mounts

Mounted filesystems.

/proc/devices

Available devices.

/proc/modules

Loaded kernel modules.

/proc/interrupts

IRQ usage.

/sys

/sys/class/hwmon/

Hardware monitoring sensors.

/sys/block/

Block devices (e.g., hard drives).

/sys/class/net/

Network interfaces.

/dev

Contains device files representing hardware devices on the system. While these files can be read from and written to, their contents are managed directly by the kernel and cannot be arbitrarily modified by users.

dmesg

The kernel message buffer, viewable using the dmesg command, contains logs of system events and hardware messages. It's a read-only view of kernel activity and cannot be edited directly.

PreviousVariablesNextFilesystem

Last updated 1 year ago

Was this helpful?

🐧