Last active
June 1, 2023 09:13
-
-
Save strohel/8fadb680019e8bbb4a3654d571456c0c to your computer and use it in GitHub Desktop.
Dump Linux kernel and boot info
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
dmesg --notime > dmesg.txt | |
sort dmesg.txt > dmesg.sorted.txt | |
dmidecode > dmidecode.txt | |
fwupdmgr get-bios-setting > fwupdmgr-get-bios-setting.txt | |
fwupdmgr get-devices > fwupdmgr-get-devices.txt | |
lsmod | sort > lsmod.txt | |
lspci -k > lspci-k.txt | |
lsusb -t > lsusb-t.txt | |
lsusb.py -ciu > lsusb-py-ciu.txt | |
sensors > sensors.txt | |
zcat /proc/config.gz > kernel-config.txt | |
lshw > lshw.txt | |
find /sys -path '*/usb*/power/*' | xargs grep . 2>/dev/null | sort > sys-usb-power.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment