git: c2a39987e6f1 - main - fortune/freebsd-tips: Add a few fortunes

Daniel Ebdrup Jensen debdrup at FreeBSD.org
Tue Mar 30 17:38:35 UTC 2021


The branch main has been updated by debdrup (doc committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=c2a39987e6f1dcd07aa03cb598675f1ca4662a1c

commit c2a39987e6f1dcd07aa03cb598675f1ca4662a1c
Author:     Daniel Ebdrup Jensen <debdrup at FreeBSD.org>
AuthorDate: 2021-03-30 17:35:50 +0000
Commit:     Daniel Ebdrup Jensen <debdrup at FreeBSD.org>
CommitDate: 2021-03-30 17:35:50 +0000

    fortune/freebsd-tips: Add a few fortunes
    
    These are fortunes I've used locally, probably for decades, so there's
    no reason why they shouldn't be available to everyone.
---
 usr.bin/fortune/datfiles/freebsd-tips | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/usr.bin/fortune/datfiles/freebsd-tips b/usr.bin/fortune/datfiles/freebsd-tips
index 31e6d31794e4..2a37f98a37e5 100644
--- a/usr.bin/fortune/datfiles/freebsd-tips
+++ b/usr.bin/fortune/datfiles/freebsd-tips
@@ -803,3 +803,37 @@ You can spot one like this:
 
 		-- Alan Somers <asomers at FreeBSD.org>
 %
+FreeBSDs ps can create a dependency tree based on parent/child relationships
+between processes, like this:
+
+$ ps -d
+
+		-- Daniel Ebdrup Jensen <debdrup at FreeBSD.org>
+%
+It is possible to get a meassure of the resident memory set:
+
+$ vmstat -o | awk 'NR>1 { t[$7] += $1 } \
+END { for (i in t) printf "%s %d\n",i,t[i] }'
+
+The rows have the following meaning:
+df = default (not assigned a specific pager)
+sw = swap
+df = virtual
+vn = vnode
+ph = heap
+md = memory device
+
+This will be reported in number of pages, so it needs to be multiplied by the
+page size of the architecture which can be found via:
+
+$ sysctl -n hw.pagesize
+
+		-- Daniel Ebdrup Jensen <debdrup at FreeBSD.org>
+%
+To establish a serial connection to anything including a USB device,
+nothing more than cu(1) is needed:
+
+$ cu -s 9600 -l /dev/ttyU0
+
+		-- Daniel Ebdrup Jensen <debdrup at FreeBSD.org>
+%


More information about the dev-commits-src-all mailing list