unix/freebsd.md
... ...
@@ -56,3 +56,11 @@ service netif restart
56 56
## in vm
57 57
* set virt-manager video to VGA for full res
58 58
* remove 'tablet' device so mouse capture works
59
+
60
+## devices
61
+* list devices
62
+```
63
+geom disk list
64
+geom part list
65
+camcontrol devlist
66
+```
unix/openbsd.md
... ...
@@ -1,8 +1,20 @@
1 1
# openbsd
2 2
3
-## setup
4
-
5 3
## firewall
6 4
```
7 5
vi /etc/pf.conf
8 6
```
7
+
8
+## packages
9
+* `pkg_info` show all packages installed by `pkg_add`
10
+
11
+## devices
12
+* list attached devices
13
+```
14
+sysctl hw.diskcount
15
+sysctl hw.disknames
16
+```
17
+* read/write disklabels
18
+```
19
+disklabel <device>
20
+```