Difference between revisions of "Testing"

From PC-BSD Wiki
Jump to: navigation, search
m
m
Line 37: Line 37:
 
<!-- row 4 -->
 
<!-- row 4 -->
 
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
 
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
Discover what hardware was detected by the kernel
+
Show USB devices
 
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
 
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
dmesg
+
usbdevs -v
 
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
 
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
lsdev
+
lsusb -tv
 
|-
 
|-
 
<!-- row 5 -->
 
<!-- row 5 -->
 
|style="border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
 
|style="border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
Discover what hardware was detected by the kernel
+
List all modules loaded in the kernel
 
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
 
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
dmesg
+
kldstat
 
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
 
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
lsdev
+
lsmod
 
|-
 
|-
 
<!-- row 6 -->
 
<!-- row 6 -->
 
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
 
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
Discover what hardware was detected by the kernel
+
Load a kernel module for the current session
 
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
 
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
dmesg
+
kldload <module>
 
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
 
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
lsdev
+
modprobe <module>
 
|-
 
|-
 
<!-- row 7 -->
 
<!-- row 7 -->
 
|style="border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
 
|style="border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
Discover what hardware was detected by the kernel
+
Install a package
 
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
 
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
dmesg
+
pkg_add -r <package>
 
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
 
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
lsdev
+
rpm -i <package>.rpm
 
|-
 
|-
 
<!-- row 8 -->
 
<!-- row 8 -->
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
+
|style="background:#eeeeee;border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
Discover what hardware was detected by the kernel
+
Description
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
+
|style="background:#eeeeee;border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
dmesg
+
FreeBSD method
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
+
|style="background:#eeeeee;border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
lsdev
+
Linux method
 
|-
 
|-
 
<!-- row 9 -->
 
<!-- row 9 -->
 
|style="border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
 
|style="border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
Discover what hardware was detected by the kernel
+
Description
 
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
 
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
dmesg
+
FreeBSD method
 
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
 
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
lsdev
+
Linux method
 
|-
 
|-
 
<!-- row 10 -->
 
<!-- row 10 -->
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
+
|style="background:#eeeeee;border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
Discover what hardware was detected by the kernel
+
Description
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
+
|style="background:#eeeeee;border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
dmesg
+
FreeBSD method
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
+
|style="background:#eeeeee;border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
lsdev
+
Linux method
 
|-
 
|-
 
<!-- row 11 -->
 
<!-- row 11 -->
 
|style="border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
 
|style="border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
Discover what hardware was detected by the kernel
+
Description
 
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
 
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
dmesg
+
FreeBSD method
 
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
 
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
lsdev
+
Linux method
|-
+
<!-- row 12 -->
+
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
+
Discover what hardware was detected by the kernel
+
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
+
dmesg
+
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
+
lsdev
+
|-
+
<!-- row 13 -->
+
|style="border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
+
Discover what hardware was detected by the kernel
+
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
+
dmesg
+
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
+
lsdev
+
|-
+
<!-- row 14 -->
+
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
+
Discover what hardware was detected by the kernel
+
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
+
dmesg
+
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
+
lsdev
+
|-
+
<!-- row 15 -->
+
|style="border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
+
Discover what hardware was detected by the kernel
+
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
+
dmesg
+
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
+
lsdev
+
|-
+
<!-- row 16 -->
+
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
+
Discover what hardware was detected by the kernel
+
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
+
dmesg
+
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
+
lsdev
+
|-
+
<!-- row 17 -->
+
|style="border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
+
Discover what hardware was detected by the kernel
+
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
+
dmesg
+
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
+
lsdev
+
|-
+
<!-- row 18 -->
+
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
+
Discover what hardware was detected by the kernel
+
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
+
dmesg
+
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
+
lsdev
+
|-
+
<!-- row 19 -->
+
|style="border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
+
Discover what hardware was detected by the kernel
+
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
+
dmesg
+
|style="border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
+
lsdev
+
|-
+
<!-- row 20 -->
+
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 2px 1px 1px;"|
+
Discover what hardware was detected by the kernel
+
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
+
dmesg
+
|style="background:#eeeeee; border:solid #BABFA3; border-width:1px 1px 1px 0px;"|
+
lsdev
+
 
|-
 
|-
 
|}
 
|}

Revision as of 02:51, 24 June 2011


Result

BSD

Linux

Discover what hardware was detected by the kernel

dmesg

lsdev

Display configured devices

sysctl dev

cat /proc/devices

Show PCI devices

pciconf -l -cv

lspci -tv

Show USB devices

usbdevs -v

lsusb -tv

List all modules loaded in the kernel

kldstat

lsmod

Load a kernel module for the current session

kldload <module>

modprobe <module>

Install a package

pkg_add -r <package>

rpm -i <package>.rpm

Description

FreeBSD method

Linux method

Description

FreeBSD method

Linux method

Description

FreeBSD method

Linux method

Description

FreeBSD method

Linux method

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox