grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

commit eb4621d8c857a6919f83aebb58cf69d517263cbe
parent aae863b327d91f06cb37729190b496beeb11f625
Author: pyratebeard <root@pyratebeard.net>
Date:   Mon,  7 Nov 2022 23:39:00 +0000

moar unix notes

Diffstat:
Munix/freebsd.md | 8++++++++
Munix/openbsd.md | 16++++++++++++++--
2 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/unix/freebsd.md b/unix/freebsd.md @@ -56,3 +56,11 @@ service netif restart ## in vm * set virt-manager video to VGA for full res * remove 'tablet' device so mouse capture works + +## devices +* list devices +``` +geom disk list +geom part list +camcontrol devlist +``` diff --git a/unix/openbsd.md b/unix/openbsd.md @@ -1,8 +1,20 @@ # openbsd -## setup - ## firewall ``` vi /etc/pf.conf ``` + +## packages +* `pkg_info` show all packages installed by `pkg_add` + +## devices +* list attached devices +``` +sysctl hw.diskcount +sysctl hw.disknames +``` +* read/write disklabels +``` +disklabel <device> +```