From owner-dev-commits-src-all@freebsd.org Tue Mar 30 17:38:29 2021 Return-Path: Delivered-To: dev-commits-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9C94657EF9D; Tue, 30 Mar 2021 17:38:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F8xW93psTz52mX; Tue, 30 Mar 2021 17:38:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 75C1E28A2; Tue, 30 Mar 2021 17:38:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 12UHcT2M092339; Tue, 30 Mar 2021 17:38:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 12UHcT0V092338; Tue, 30 Mar 2021 17:38:29 GMT (envelope-from git) Date: Tue, 30 Mar 2021 17:38:29 GMT Message-Id: <202103301738.12UHcT0V092338@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Daniel Ebdrup Jensen Subject: git: 547817631948 - main - fortune/freebsd-tips: Remove errant spaces MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: debdrup X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 547817631948f8a34a682ff0eebf88d3e55f1f05 Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2021 17:38:29 -0000 The branch main has been updated by debdrup (doc committer): URL: https://cgit.FreeBSD.org/src/commit/?id=547817631948f8a34a682ff0eebf88d3e55f1f05 commit 547817631948f8a34a682ff0eebf88d3e55f1f05 Author: Daniel Ebdrup Jensen AuthorDate: 2021-03-30 17:05:05 +0000 Commit: Daniel Ebdrup Jensen CommitDate: 2021-03-30 17:05:05 +0000 fortune/freebsd-tips: Remove errant spaces I noticed these errant spaces while removing a bogus fortune, and decided I might as well fix them. While here, reflow a line to it within 80 columns --- usr.bin/fortune/datfiles/freebsd-tips | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/usr.bin/fortune/datfiles/freebsd-tips b/usr.bin/fortune/datfiles/freebsd-tips index f25a94775d14..31e6d31794e4 100644 --- a/usr.bin/fortune/datfiles/freebsd-tips +++ b/usr.bin/fortune/datfiles/freebsd-tips @@ -336,7 +336,7 @@ write This won't work if you don't have write permissions to the directory and probably won't be suitable if you're editing through a symbolic link. -If you have sudo(8) installed and permissions to use it, type +If you have sudo(8) installed and permissions to use it, type ``w ! sudo tee %'' to force a write. % You can adjust the volume of various parts of the sound system in your @@ -563,7 +563,7 @@ sysctl(8) tell you with the following command: sysctl hw.realmem The realmem value is memory before the kernel and modules are loaded, whereas -hw.physmem is what is left after they were loaded. +hw.physmem is what is left after they were loaded. The number of active CPUs is displayed using this command: @@ -573,7 +573,7 @@ sysctl hw.ncpu % When using ZFS as the file system the "df" command is reporting the pool size and not file system sizes. It also does not know about descendent ZFS -datasets, snapshots, quotas, and reservations with their individual space usage. +datasets, snapshots, quotas, and reservations with their individual space usage. Use the built-in "zfs list" command to get a better overview of space usage: zfs list -o space @@ -604,7 +604,7 @@ The zfs userspace command can display the quota and current space usage: # zfs userspace pool/home/foo -To unset a quota, assign "none" as the value. +To unset a quota, assign "none" as the value. -- Benedict Reuschling % ZFS can display I/O statistics for a given pool using the iostat subcommand. @@ -688,7 +688,7 @@ zfs list -H Another helpful option for script writers is -p, which displays the numbers in non-rounded, exact values: -zfs list -p +zfs list -p -- Benedict Reuschling % @@ -705,7 +705,7 @@ parameter to execute the destroy operation. -- Benedict Reuschling % You can delete a range of ZFS snapshots (a-z) in multiple ways. -The following will delete d and all earlier snapshots: +The following will delete d and all earlier snapshots: zfs destroy mypool/data@%d @@ -718,8 +718,8 @@ To delete all dataset snapshots: zfs destroy mypool/data@% Make sure to let ZFS perform a dry run (-n option) first and display (-v) what -it would do to confirm that the delete operation is removing exactly what you -intended. +it would do to confirm that the delete operation is removing exactly what you +intended. -- Benedict Reuschling % To set a custom ZFS property on the mypool pool, you need to provide it @@ -796,7 +796,8 @@ always have space left this way. -- Benedict Reuschling % -Sometimes a single slow HDD can cripple the performance of your entire system. You can spot one like this: +Sometimes a single slow HDD can cripple the performance of your entire system. +You can spot one like this: # gstat -I5s | sort -rn -k9 | head