sudo apt install lshw inxi smartmontools lm-sensors acpi
Some hardware tools require sudo to see full firmware or disk details.
Commands, distributions, and practical Linux guidance
Command hub
Windows system utilities, disk tools and hardware information commands mapped to Linux equivalents such as lsblk, df, fsck, smartctl, sensors and systemd-analyze.
Distro notes
System & Storage
sudo apt install lshw inxi smartmontools lm-sensors acpi
Some hardware tools require sudo to see full firmware or disk details.
sudo dnf install lshw inxi smartmontools lm_sensors acpi
Package names sometimes use underscores, for example lm_sensors.
sudo pacman -S lshw inxi smartmontools lm_sensors acpi
Run sensors-detect if hardware sensors do not show readings.
Guides
70 commands
diskpart list disk→lsblk -d -o NAME,SIZE,MODEL
Block Devices
List physical disks
Shows disk devices and models.
Distro equivalents
Debian/Ubuntu
lsblk -d -o NAME,SIZE,MODEL
Fedora
lsblk -d -o NAME,SIZE,MODEL
Arch
lsblk -d -o NAME,SIZE,MODEL
Open full guide →
diskpart list volume→lsblk -f
Block Devices
List volumes/filesystems
Shows partitions with filesystems and UUIDs.
Distro equivalents
Debian/Ubuntu
lsblk -f
Fedora
lsblk -f
Arch
lsblk -f
Open full guide →
fsutil fsinfo drives→lsblk
Block Devices
List block devices
Lists disks, partitions and block devices.
Distro equivalents
Debian/Ubuntu
lsblk
Fedora
lsblk
Arch
lsblk
Open full guide →
bcdedit /enum→bootctl status
Boot
Show boot configuration
Shows systemd-boot status where systemd-boot is used.
Distro equivalents
Debian/Ubuntu
bootctl status || grep menuentry /boot/grub/grub.cfg
Fedora
sudo grubby --info=ALL
Arch
bootctl status || grep menuentry /boot/grub/grub.cfg
Open full guide →
bcdedit /set default→sudo grub-set-default 0
Boot
Set default boot entry
Sets the default GRUB boot entry.
Distro equivalents
Debian/Ubuntu
sudo grub-set-default 0
Fedora
sudo grub-set-default 0
Arch
sudo grub-set-default 0
Open full guide →
msconfig boot→systemctl get-default
Boot
Show default boot target
Shows the default systemd target.
Distro equivalents
Debian/Ubuntu
systemctl get-default
Fedora
systemctl get-default
Arch
systemctl get-default
Open full guide →
msconfig safe boot→sudo systemctl set-default rescue.target
Boot
Set rescue target
Configures boot into rescue mode.
Distro equivalents
Debian/Ubuntu
sudo systemctl set-default rescue.target
Fedora
sudo systemctl set-default rescue.target
Arch
sudo systemctl set-default rescue.target
Open full guide →
chkdsk→fsck
Disk & Storage
Check filesystem integrity
Scans and repairs filesystem errors on a disk or partition.
Distro equivalents
Debian/Ubuntu
fsck
Fedora
fsck
Arch
fsck
Open full guide →
defrag→sudo fstrim -av
Disk & Storage
Optimize storage maintenance
Discards unused SSD blocks or defragments an ext4 filesystem when appropriate.
Distro equivalents
Debian/Ubuntu
sudo fstrim -av
Fedora
sudo fstrim -av
Arch
sudo fstrim -av
Open full guide →
diskmgmt.msc→gparted
Disk & Storage
Manage disks graphically
Provides a graphical interface for viewing disks, creating partitions, formatting volumes and managing mounts.
Distro equivalents
Debian/Ubuntu
gparted
Fedora
gparted
Arch
gparted
Open full guide →
diskpart / fdisk→fdisk / parted
Disk & Storage
Manage disk partitions
Creates, deletes, and modifies disk partitions. Use with extreme care.
Distro equivalents
Debian/Ubuntu
fdisk / parted
Fedora
fdisk / parted
Arch
fdisk / parted
Open full guide →
diskpart clean / clean all→wipefs / shred
Disk & Storage
Wipe or sanitise a disk
Removes filesystem signatures from a disk or securely overwrites all data to prevent recovery.
Distro equivalents
Debian/Ubuntu
wipefs / shred
Fedora
wipefs / shred
Arch
wipefs / shred
Open full guide →
format→mkfs.ext4
Disk & Storage
Format a disk/partition
Creates a new filesystem on a disk partition, erasing all existing data.
Distro equivalents
Debian/Ubuntu
mkfs.ext4
Fedora
mkfs.ext4
Arch
mkfs.ext4
Open full guide →
fsutil volume diskfree→df -h
Disk & Storage
Show free filesystem space
Displays used and available capacity for mounted filesystems.
Distro equivalents
Debian/Ubuntu
df -h
Fedora
df -h
Arch
df -h
Open full guide →
label→e2label / tune2fs -L
Disk & Storage
Set or view disk volume label
Assigns a human-readable name (label) to a disk partition for easier identification.
Distro equivalents
Debian/Ubuntu
e2label / tune2fs -L
Fedora
e2label / tune2fs -L
Arch
e2label / tune2fs -L
Open full guide →
mountvol→findmnt
Disk & Storage
View or manage mount points
Lists mounted filesystems and attaches or detaches a filesystem from the directory tree.
Distro equivalents
Debian/Ubuntu
findmnt
Fedora
findmnt
Arch
findmnt
Open full guide →
wbadmin / disk image→dd
Disk & Storage
Create raw byte-for-byte disk images
Creates a complete raw copy of an entire disk or partition — useful for backups, imaging, and forensics.
Distro equivalents
Debian/Ubuntu
dd
Fedora
dd
Arch
dd
Open full guide →
wmic diskdrive get status→sudo smartctl -H /dev/sda
Disk & Storage
Check drive health
Reads SMART health status and diagnostics reported by a physical disk.
Distro equivalents
Debian/Ubuntu
sudo apt install smartmontools && sudo smartctl -H /dev/sda
Fedora
sudo dnf install smartmontools && sudo smartctl -H /dev/sda
Arch
sudo pacman -S smartmontools && sudo smartctl -H /dev/sda
Open full guide →
chkdsk /r→sudo badblocks -sv /dev/sdX
Disk Maintenance
Scan for bad blocks
Scans a block device for bad sectors.
Distro equivalents
Debian/Ubuntu
sudo badblocks -sv /dev/sdX
Fedora
sudo badblocks -sv /dev/sdX
Arch
sudo badblocks -sv /dev/sdX
Open full guide →
cipher /w free space→sudo zerofree /dev/sdXn
Disk Maintenance
Zero free space
Zeros unused blocks on a supported unmounted filesystem.
Distro equivalents
Debian/Ubuntu
sudo zerofree /dev/sdXn
Fedora
sudo zerofree /dev/sdXn
Arch
sudo zerofree /dev/sdXn
Open full guide →
defrag /L→sudo fstrim -av
Disk Maintenance
Trim SSD filesystems
Runs discard/TRIM on mounted filesystems that support it.
Distro equivalents
Debian/Ubuntu
sudo fstrim -av
Fedora
sudo fstrim -av
Arch
sudo fstrim -av
Open full guide →
winsat disk→fio --name=test --filename=testfile --size=1G --rw=readwrite
Disk Maintenance
Benchmark disk
Runs a configurable disk benchmark with fio.
Distro equivalents
Debian/Ubuntu
fio --name=test --filename=testfile --size=1G --rw=readwrite
Fedora
fio --name=test --filename=testfile --size=1G --rw=readwrite
Arch
fio --name=test --filename=testfile --size=1G --rw=readwrite
Open full guide →
wmic logicaldisk get size→df -h
Disk Usage
Show disk free space
Displays filesystem usage in human-readable units.
Distro equivalents
Debian/Ubuntu
df -h
Fedora
df -h
Arch
df -h
Open full guide →
driverquery→lspci -k
Drivers
Show hardware drivers
Lists PCI devices and active kernel drivers.
Distro equivalents
Debian/Ubuntu
lspci -k
Fedora
lspci -k
Arch
lspci -k
Open full guide →
pnputil /disable-device→sudo modprobe -r MODULE
Drivers
Unload driver module
Removes a kernel module when possible.
Distro equivalents
Debian/Ubuntu
sudo modprobe -r MODULE
Fedora
sudo modprobe -r MODULE
Arch
sudo modprobe -r MODULE
Open full guide →
pnputil /enum-drivers→lsmod
Drivers
List loaded drivers/modules
Lists loaded Linux kernel modules.
Distro equivalents
Debian/Ubuntu
lsmod
Fedora
lsmod
Arch
lsmod
Open full guide →
chkdsk /f→sudo fsck -f /dev/sdXn
Filesystems
Force filesystem check
Checks and repairs a filesystem while unmounted.
Distro equivalents
Debian/Ubuntu
sudo fsck -f /dev/sdXn
Fedora
sudo fsck -f /dev/sdXn
Arch
sudo fsck -f /dev/sdXn
Open full guide →
diskpart assign letter→sudo mount /dev/sdXn /mnt
Filesystems
Mount filesystem
Mounts a filesystem at a directory.
Distro equivalents
Debian/Ubuntu
sudo mount /dev/sdXn /mnt
Fedora
sudo mount /dev/sdXn /mnt
Arch
sudo mount /dev/sdXn /mnt
Open full guide →
diskpart remove letter→sudo umount /mnt
Filesystems
Unmount filesystem
Unmounts a mounted filesystem.
Distro equivalents
Debian/Ubuntu
sudo umount /mnt
Fedora
sudo umount /mnt
Arch
sudo umount /mnt
Open full guide →
format /q→sudo mkfs.ext4 -F /dev/sdXn
Filesystems
Quick format filesystem
Creates a new filesystem on a partition.
Distro equivalents
Debian/Ubuntu
sudo mkfs.ext4 -F /dev/sdXn
Fedora
sudo mkfs.ext4 -F /dev/sdXn
Arch
sudo mkfs.ext4 -F /dev/sdXn
Open full guide →
fsutil fsinfo volumeinfo→findmnt -no SOURCE,FSTYPE,OPTIONS /
Filesystems
Show mounted volume info
Shows source device, filesystem and mount options.
Distro equivalents
Debian/Ubuntu
findmnt -no SOURCE,FSTYPE,OPTIONS /
Fedora
findmnt -no SOURCE,FSTYPE,OPTIONS /
Arch
findmnt -no SOURCE,FSTYPE,OPTIONS /
Open full guide →
mountvol /l→findmnt
Filesystems
List mounted filesystems
Lists current mount points.
Distro equivalents
Debian/Ubuntu
findmnt
Fedora
findmnt
Arch
findmnt
Open full guide →
dxdiag display→glxinfo -B
Hardware Info
Show graphics renderer
Displays OpenGL renderer and driver information.
Distro equivalents
Debian/Ubuntu
glxinfo -B
Fedora
glxinfo -B
Arch
glxinfo -B
Open full guide →
systeminfo CPU→lscpu
Hardware Info
Show CPU details
Displays CPU architecture, cores and flags.
Distro equivalents
Debian/Ubuntu
lscpu
Fedora
lscpu
Arch
lscpu
Open full guide →
systeminfo memory→free -h
Hardware Info
Show memory usage
Shows RAM and swap usage.
Distro equivalents
Debian/Ubuntu
free -h
Fedora
free -h
Arch
free -h
Open full guide →
wmic diskdrive get model→lsblk -d -o NAME,MODEL,SIZE
Hardware Info
Show disk model
Prints disk model and size.
Distro equivalents
Debian/Ubuntu
lsblk -d -o NAME,MODEL,SIZE
Fedora
lsblk -d -o NAME,MODEL,SIZE
Arch
lsblk -d -o NAME,MODEL,SIZE
Open full guide →
wmic memorychip capacity→sudo dmidecode -t memory
Hardware Info
Show memory modules
Displays DIMM slot and module information.
Distro equivalents
Debian/Ubuntu
sudo dmidecode -t memory
Fedora
sudo dmidecode -t memory
Arch
sudo dmidecode -t memory
Open full guide →
Reliability Monitor→journalctl -p err -b
Logs
Show current boot errors
Lists error-level log entries for current boot.
Distro equivalents
Debian/Ubuntu
journalctl -p err -b
Fedora
journalctl -p err -b
Arch
journalctl -p err -b
Open full guide →
powercfg /a→cat /sys/power/state
Power
Show supported sleep states
Lists sleep states exposed by the kernel.
Distro equivalents
Debian/Ubuntu
cat /sys/power/state
Fedora
cat /sys/power/state
Arch
cat /sys/power/state
Open full guide →
powercfg /energy→sudo powertop
Power
Analyze power usage
Opens a power diagnostics tool.
Distro equivalents
Debian/Ubuntu
sudo powertop
Fedora
sudo powertop
Arch
sudo powertop
Open full guide →
powercfg /hibernate off→sudo systemctl mask hibernate.target hybrid-sleep.target
Power
Disable hibernation targets
Masks hibernate-related systemd targets.
Distro equivalents
Debian/Ubuntu
sudo systemctl mask hibernate.target hybrid-sleep.target
Fedora
sudo systemctl mask hibernate.target hybrid-sleep.target
Arch
sudo systemctl mask hibernate.target hybrid-sleep.target
Open full guide →
DISM RestoreHealth→sudo apt install --reinstall PACKAGE
Repair/Integrity
Reinstall damaged package files
Linux repair usually means verifying and reinstalling affected packages.
Distro equivalents
Debian/Ubuntu
sudo apt update && sudo apt install --reinstall PACKAGE
Fedora
sudo dnf reinstall PACKAGE
Arch
sudo pacman -S PACKAGE
Open full guide →
sfc /scannow→debsums -s
Repair/Integrity
Verify system package files
Checks installed package files against package metadata.
Distro equivalents
Debian/Ubuntu
sudo apt install debsums && sudo debsums -s
Fedora
sudo rpm -Va
Arch
sudo pacman -Qkk
Open full guide →
cleanmgr (Disk Cleanup)→apt clean / journalctl --vacuum-size
System
Free up disk space
Removes temporary files, old package caches, and other items that can safely be deleted to recover disk space.
Distro equivalents
Debian/Ubuntu
apt clean / journalctl --vacuum-size
Fedora
apt clean / journalctl --vacuum-size
Arch
apt clean / journalctl --vacuum-size
Open full guide →
gpupdate /force→puppet / ansible / chef
System
Apply configuration management policies
Applies centralised configuration policies — the Linux equivalent of Group Policy Update.
Distro equivalents
Debian/Ubuntu
puppet / ansible / chef
Fedora
puppet / ansible / chef
Arch
puppet / ansible / chef
Open full guide →
hibernate→systemctl hibernate
System
Hibernate — save state to disk and power off
Saves the current RAM state to disk and powers off. On next boot, the session resumes exactly where you left off.
Distro equivalents
Debian/Ubuntu
systemctl hibernate
Fedora
systemctl hibernate
Arch
systemctl hibernate
Open full guide →
logoff→logout / pkill -KILL -u username
System
Log off the current user session
Ends the current user session, closing all running processes owned by that user.
Distro equivalents
Debian/Ubuntu
logout / pkill -KILL -u username
Fedora
logout / pkill -KILL -u username
Arch
logout / pkill -KILL -u username
Open full guide →
msconfig / Task Scheduler→crontab -e
System
Schedule recurring tasks
Runs commands or scripts automatically on a schedule — like Windows Task Scheduler.
Distro equivalents
Debian/Ubuntu
crontab -e
Fedora
crontab -e
Arch
crontab -e
Open full guide →
msconfig / systemd-analyze→systemd-analyze
System
Analyse system boot performance
Shows total boot time and which services took the longest to start.
Distro equivalents
Debian/Ubuntu
systemd-analyze
Fedora
systemd-analyze
Arch
systemd-analyze
Open full guide →
regedit (Windows Registry)→/etc/ and ~/.config/
System
System and application configuration storage
Linux stores all configuration in plain text files rather than a registry. System config is in /etc/, user config is in ~/.config/ and dotfiles.
Distro equivalents
Debian/Ubuntu
/etc/ and ~/.config/
Fedora
/etc/ and ~/.config/
Arch
/etc/ and ~/.config/
Open full guide →
regsvr32 (register DLL)→sudo ldconfig
System
Update shared library cache
Updates the dynamic linker cache after installing new shared libraries (.so files) — the Linux equivalent of registering a DLL.
Distro equivalents
Debian/Ubuntu
sudo ldconfig
Fedora
sudo ldconfig
Arch
sudo ldconfig
Open full guide →
shutdown→shutdown
System
Shutdown or restart the system
Powers off, reboots, or schedules a shutdown of the Linux system.
Distro equivalents
Debian/Ubuntu
shutdown
Fedora
shutdown
Arch
shutdown
Open full guide →
whoami→whoami
System
Show current username
Displays the username of the currently logged-in user.
Distro equivalents
Debian/Ubuntu
whoami
Fedora
whoami
Arch
whoami
Open full guide →
date /t & time /t→date
System Info
Display or set date and time
Shows the current date and time, or sets the system clock.
Distro equivalents
Debian/Ubuntu
date
Fedora
date
Arch
date
Open full guide →
devmgmt.msc (Device Manager)→lspci / lsusb / lshw
System Info
View hardware devices and drivers
Lists hardware devices, their drivers, and status — the Linux equivalent of Device Manager.
Distro equivalents
Debian/Ubuntu
sudo apt install pciutils usbutils lshw && lspci && lsusb
Fedora
sudo dnf install pciutils usbutils lshw && lspci && lsusb
Arch
sudo pacman -S pciutils usbutils lshw && lspci && lsusb
Open full guide →
msinfo32 / dxdiag→lshw / inxi
System Info
Full hardware information
Displays detailed hardware inventory — CPU, RAM, motherboard, GPU, and more.
Distro equivalents
Debian/Ubuntu
lshw / inxi
Fedora
lshw / inxi
Arch
lshw / inxi
Open full guide →
perfmon / Resource Monitor→vmstat / iostat
System Info
Monitor system performance
Shows real-time statistics on CPU, memory, disk I/O, and system activity.
Distro equivalents
Debian/Ubuntu
vmstat / iostat
Fedora
vmstat / iostat
Arch
vmstat / iostat
Open full guide →
powercfg /batteryreport→acpi / upower
System Info
Battery status and health
Shows battery charge level, time remaining, and health information on laptops.
Distro equivalents
Debian/Ubuntu
acpi / upower
Fedora
acpi / upower
Arch
acpi / upower
Open full guide →
systeminfo→uname -a
System Info
Display system information
Shows OS version, hardware details, memory, and system configuration.
Distro equivalents
Debian/Ubuntu
uname -a
Fedora
uname -a
Arch
uname -a
Open full guide →
uptime (Task Manager → Performance)→uptime
System Info
Show how long the system has been running
Displays how long the system has been running since the last boot, along with current CPU load averages.
Distro equivalents
Debian/Ubuntu
uptime
Fedora
uptime
Arch
uptime
Open full guide →
ver→uname -r
System Info
Show kernel version
Prints the running Linux kernel release.
Distro equivalents
Debian/Ubuntu
uname -r
Fedora
uname -r
Arch
uname -r
Open full guide →
winver / About Windows→neofetch / fastfetch
System Info
Display OS info with ASCII art logo
Shows system information in a visually attractive format — distro, kernel, uptime, CPU, RAM, and more.
Distro equivalents
Debian/Ubuntu
neofetch / fastfetch
Fedora
neofetch / fastfetch
Arch
neofetch / fastfetch
Open full guide →
wmic bios get serialnumber→sudo dmidecode
System Info
Read BIOS and hardware serial numbers
Reads hardware information from the system BIOS/UEFI including serial numbers, model numbers, and firmware versions.
Distro equivalents
Debian/Ubuntu
sudo dmidecode
Fedora
sudo dmidecode
Arch
sudo dmidecode
Open full guide →
wmic memorychip get→sudo dmidecode -t memory
System Info
Display physical RAM module details
Shows information about physical RAM modules including size, speed, type, and which slots are populated.
Distro equivalents
Debian/Ubuntu
sudo dmidecode -t memory
Fedora
sudo dmidecode -t memory
Arch
sudo dmidecode -t memory
Open full guide →
wmic temperature / Core Temp→sensors
System Info
Read CPU and hardware temperatures
Displays temperature readings from CPU, GPU, and motherboard sensors.
Distro equivalents
Debian/Ubuntu
sudo apt install lm-sensors && sensors
Fedora
sudo dnf install lm_sensors && sensors
Arch
sudo pacman -S lm_sensors && sensors
Open full guide →
PowerShell Set-TimeZone→sudo timedatectl set-timezone Region/City
Time/Locale
Set timezone from shell
Changes system timezone from the terminal.
Distro equivalents
Debian/Ubuntu
sudo timedatectl set-timezone Region/City
Fedora
sudo timedatectl set-timezone Region/City
Arch
sudo timedatectl set-timezone Region/City
Open full guide →
control timedate.cpl→timedatectl
Time/Locale
Show time settings
Displays time, timezone and NTP sync settings.
Distro equivalents
Debian/Ubuntu
timedatectl
Fedora
timedatectl
Arch
timedatectl
Open full guide →
intl.cpl→localectl status
Time/Locale
Show locale settings
Displays system locale and keyboard settings.
Distro equivalents
Debian/Ubuntu
localectl status
Fedora
localectl status
Arch
localectl status
Open full guide →
tzutil /g→timedatectl show --property=Timezone --value
Time/Locale
Show timezone
Prints the configured system timezone.
Distro equivalents
Debian/Ubuntu
timedatectl show --property=Timezone --value
Fedora
timedatectl show --property=Timezone --value
Arch
timedatectl show --property=Timezone --value
Open full guide →
tzutil /s→sudo timedatectl set-timezone Region/City
Time/Locale
Set timezone
Changes the system timezone.
Distro equivalents
Debian/Ubuntu
sudo timedatectl set-timezone Region/City
Fedora
sudo timedatectl set-timezone Region/City
Arch
sudo timedatectl set-timezone Region/City
Open full guide →