* 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 ===== 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 ===== 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 - '/etc/netstart' service 'netif' restart service 'netif' restart 'wlan0' ===== hw-probe ===== * https://bsd-hardware.info/ * https://bsd-hardware.info/?view=howto * 2024/09/13: [[https://bsd-hardware.info/?probe=99f8e55057|Spinesnap]] su - pkg install 'hw-probe' hw-probe -all -upload ===== Crashdump Clean-up ===== **** rm -fv ~/*'.core' ===== 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