* TODO: Format
====== Notable Folders and Commands ======
===== Get Release/OS Info =====
cat '/etc/os-release'
cat '/etc/os-release' | grep 'PRETTY_NAME'
===== Font Cache =====
****
fc-cache -r -v
===== Drive Wipe =====
su -
gpart show
gpart destroy -F 'da1'
dd if='/dev/zero' of='/dev/da1' count='8096'
===== USB Flash Drive =====
su -
camcontrol devlist
dmesg | grep 'ugen'
usbconfig -d '/dev/ugen0.6' power_off
===== Mount MTP =====
su -
pkg install 'fusefs-jmtpfs'
kldload 'fusefs'
mkdir -p '/mnt/MTP' && jmtpfs -o 'allow_other' '/mnt/MTP'
===== User/Group =====
awk -F":" '{print $1}' /etc/passwd
awk -F":" '{print $1}' /etc/group
su -
pw userdel 'x' -r
pw groupdel 'x'
===== pkg =====
* ''x'' is a package name
pkg info -l x
pkg autoremove
===== Install History =====
****
cat '/var/log/messages' | grep 'pkg'
===== Erase Command History =====
* Log-out of Xfce (pre-''startx''/tty)
rm -f ~/'.sh_history' & exit
===== Handbook =====
pkg info -l 'en-freebsd-doc'
gio open '/usr/local/share/doc/freebsd/en/books/handbook'
===== CPU Frequency =====
****
su - root -c "sysctl 'dev.cpu.0.freq' 'dev.cpu.1.freq' 'dev.cpu.2.freq' 'dev.cpu.3.freq' 'dev.cpu.4.freq' 'dev.cpu.5.freq' 'dev.cpu.6.freq' 'dev.cpu.7.freq'"
===== Time Sync =====
****
su - root -c 'ntpd -g -q'
===== Network Restart =====
su 'root' -c "service 'netif' restart && '/etc/netstart'"
su -
service 'netif' restart
'/etc/netstart'
service 'netif' restart 'wlan0'
===== Ethernet Speed =====
su -
ifconfig -m
ifconfig 'em0' 'tso' 'media' '1000baseT' 'mediaopt' 'full-duplex'
ifconfig 'bge0' 'media' '1000baseT' 'mediaopt' 'full-duplex,master'
===== hw-probe =====
* https://bsd-hardware.info/
* https://bsd-hardware.info/?view=howto
* 2024/09/13: [[https://bsd-hardware.info/?probe=99f8e55057|Spinesnap]]
* 2025/10/29: [[https://bsd-hardware.info/?probe=31f7224676|Spinesnap]]
su -
pkg install 'hw-probe'
hw-probe -all -upload
pkg remove 'hw-probe' && pkg autoremove
===== Crashdump Clean-up =====
****
rm -fv ~/*'.core'
===== Xfce Panel Reload =====
* Also refreshes new ''.desktop'' entries that don't appear with ''update-desktop-database''
xfce4-panel -r
===== Xfce Settings Reset =====
rm -fv ~/'.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml'
gio open ~/'.config/xfce4/xfconf/xfce-perchannel-xml'
gio open ~/'.config/xfce4/xfconf'
===== Audio Output Switch =====
* https://docs.freebsd.org/en/books/handbook/multimedia/#sound-mixer
* https://man.freebsd.org/cgi/man.cgi?query=mixer
mixer -a
echo ' Headphones ' && mixer -d 'pcm1' -f '/dev/mixer1'
echo ' Onboard ' && mixer -d 'pcm0' -f '/dev/mixer0'
===== Check Network Bandwidth =====
****
systat -ifstat 1
===== Single-user ZFS RW =====
* https://forums.freebsd.org/threads/how-to-rw-in-single-user-mode.86186/#post-578493
zfs readonly=off zroot/ROOT/default
===== Logs =====
newsyslog -v -CC -N
cat '/dev/null' > '/var/log/all.log'
cat '/dev/null' > '/var/log/Xorg.0.log'
gio open '/var/log'
ls -la '/var/log'
==== syslog.conf ====
=== all.log ===
== Enable ==
* Uncomment
su -
ee '/etc/syslog.conf'
#*.* /var/log/all.log
== Permissions ==
su -
touch '/var/log/all.log' && chmod '600' '/var/log/all.log'
== View ==
su -
ee '/var/log/all.log'
===== Other Files/Paths =====
* TODO
====== GSK_RENDERER ======
* https://api.pygobject.gnome.org/Gsk-4.0/class-Renderer.html#
* 2025/11/03
GSK_RENDERER='help' gtk4-demo --autoquit '1'
cairo - Use the Cairo fallback renderer
opengl - Use the OpenGL renderer
ngl - Use the OpenGL renderer
gl - Use the OpenGL renderer
vulkan - Use the Vulkan renderer
help - Print this help