Windows: Get Windows Feature Version/Release ID


2 Ways to determine the Windows Feature Version / Release ID from commandline. With powershell
More »

Advertisment to support

Linux: Determine driver for a device


let us assume you want to determine which driver is behind a device. For example disk /dev/sdc

By udev. Query the device /dev/sdc by udevadm. Scroll down to the section for the pci device

root@devdeb ~# udevadm info -a -n /dev/sdc
  looking at parent device '/devices/pci0000:00/0000:00:10.0':

or (the native way) by sysfs

root@devdeb ~# cd /sys/block/sdc
root@devdeb ~# cd -P /sys/block/sdc/device

Go to the pci device

root@devdeb ~# cd /sys/devices/pci0000:00/0000:00:10.0
root@devdeb ~#  ls -l driver
lrwxrwxrwx 1 root root 0 Dec 22 09:14 driver -> ../../../bus/pci/drivers/mptspi


Powershell: Determine the image type (x64/x86) of an exe file


based on this stackoverflow post I’ve written a powershell function to determine the image type of an Windows executable. The Powershells System.IO.FileSystemInfo type does not provide such an info.
More »

Original Theme by Schiy · Powered by WordPress