aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/fortune
Commit message (Collapse)AuthorAgeFilesLines
* Revert "fortune: fix netstat tip"Warner Losh2026-02-191-1/+1
| | | | | | | This reverts commit 8e593a1f143203cace2e14bd6629a8ebdf9b47dc. I was totally wrong, so just revert and get on with it. Sponsored by: Netflix
* fortune: fix netstat tipWarner Losh2026-02-181-1/+1
| | | | | | | | netstati <mumble> 8 reports in bytes per second (averaged over 8 seconds) rather than bits per second because it reports the total in bits over the 8 seconds... Sponsored by: Netflix
* freebsd-tips: Add a shell function for laptopsAlexander Ziaee2025-11-141-0/+8
| | | | | | MFC after: 3 days Reviewed by: pauamma_gundo.com Differential Revision: https://reviews.freebsd.org/D53748
* fortune: Fix typo in dmesgd.nycbug.org exampleChristos Margiolis2025-07-131-1/+1
| | | | | | | No functional change, but commit for correctness nonetheless. MFC after: 1 day Differential Revision: https://reviews.freebsd.org/D51293
* How to show interface traffic in bits per secondPoul-Henning Kamp2024-12-021-0/+4
|
* Remove residual blank line at start of MakefileWarner Losh2024-07-156-6/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* freebsd-tips: Tweak fortune to find font providing Unicode characterJoseph Mingrone2024-05-151-8/+5
| | | | | | | While here, remove my name and email address. Reported by: bapt Sponsored by: The FreeBSD Foundation
* freebsd-tips: Add fortune to find font providing Unicode characterJoseph Mingrone2024-05-131-0/+14
| | | | | | Reviewed by: emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D45183
* freebsd-tips: freebsd-update fetch, then installGraham Perrin2024-02-021-2/+3
| | | | | | | | | | | | In end of life (EOL) warning cases: freebsd-update fetch install (the two commands, combined) may fetch and patch, but not install. Instead: run the two consecutively. Consistent with installation information in /releases/ areas and with accepted https://reviews.freebsd.org/D42722 Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1096
* fortune: update mailing list search urlChristos Margiolis2023-12-271-1/+1
| | | | | | | | Markmail no longer exists. Reviewed by: markj MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D43209
* Remove copyright strings ifdef'd outWarner Losh2023-11-273-27/+0
| | | | | | | | | | | We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require). Sponsored by: Netflix
* usr.bin: Remove ancient SCCS tags.Warner Losh2023-11-2717-34/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* fortune: use 115200 in serial exampleEd Maste2023-10-051-1/+1
| | | | | | | | | Commit 4722ceb7d53e switched the default serial rate to 115200 bps. Follow suit in the freebsd-tips fortune example. Reviewed by: bcr Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D41495
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-1615-15/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-163-6/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Remove $FreeBSD$: one-line .c comment patternWarner Losh2023-08-161-1/+0
| | | | Remove /^/[*/]\s*\$FreeBSD\$.*\n/
* Remove $FreeBSD$: one-line .h patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
* Mark usage function as __dead2 in programs where it does not returnAlfonso Gregory2023-07-071-1/+1
| | | | | | | | In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735
* Update tip for adding a user to wheel:Pau Amma2022-10-091-1/+2
| | | | | | | | Use "pw groupmod" instead of hand-editing /etc/group Reviewed by: bcr, gjb Approved by: gjb (mentor)
* fortune: Unindent a debug printf in get_fort().John Baldwin2022-10-031-4/+5
| | | | | | | | | The debug printf is intended to execute after the loop has ended to log the selected file. Reviewed by: imp, emaste Reported by: GCC Differential Revision: https://reviews.freebsd.org/D36815
* mixer: remove volume backwards compat, add % interpretationKyle Evans2022-06-181-1/+1
| | | | | | | | | | | | | | | | The current situation is fairly confusing, where an integer is interpreted as a percent until you slap a decimal on it and magically it becomes an absolute value. Let's have a flag day in 14.0 and remove this shim entirely. Setting with percent can still be useful, so allow a trailing '%' to indicate as such. As a side effect, we tighten down the format allowed in the volume a little bit by ensuring there's no trailing garbage after the value once it's separated into left and right components. Reviewed by: christos, hselasky, pauamma_gundo.com (manpages) Relnotes: yes Differential Revision: https://reviews.freebsd.org/D35101
* Chase mixer(8) command-line interface changesMateusz Piotrowski2022-03-131-2/+2
| | | | | | | | | | | | | | | | | | FreeBSD 14.0 is going to ship with a new implementation of the mixer(8) command. Unfortunately, in order to support new features like mute, the command-line interface of the new implementation is not backwards compatible. Update all the remaining documentation and scripts in the src tree to use the new syntax. While here, document in usbhidaction.1 that the mute functionality is now supported. Reviewed by: christos, debdrup, hselasky Approved by: hselasky (src) Fixes: 903873ce1560 Implement and use new mixer(3) library for FreeBSD. Differential Revision: https://reviews.freebsd.org/D34545
* freebsd-tips: Fix the description of fetch(1) to match the commandLi-Wen Hsu2021-07-051-1/+1
| | | | | Reported by: jrtc27 MFC with: ffe6afc4f0121f1909f2fa88694228f771dd3fcb
* freebsd-tips: Use a fetchable URL as exampleLi-Wen Hsu2021-07-041-1/+1
| | | | MFC after: 3 days
* fortune: correct documentation of default FORTUNE_PATH.Ceri Davies2021-07-012-3/+3
| | | | While here, fix a typo in a comment relating to FORTUNE_PATH
* freebsd-tips: Add fortune on kern.tty_info_kstacksMichael Gmelin2021-06-091-0/+7
| | | | | | | | Add fortune explaining how to use `sysctl kern.tty_info_kstacks' to alter the output of ^T (tty info). Reviewed by: ceri Differential Revision: https://reviews.freebsd.org/D30388
* sys/*/conf/*, docs: fix links to handbookCeri Davies2021-05-201-2/+1
| | | | | | | | | | | | While here, fix all links to older en_US.ISO8859-1 documentation in the src/ tree. PR: 255026 Reported by: Michael Büker <freebsd@michael-bueker.de> Reviewed by: dbaio Approved by: blackend (mentor), re (gjb) MFC after: 10 days Differential Revision: https://reviews.freebsd.org/D30265
* fortune/freebsd-tips: Fix markup and wordingDaniel Ebdrup Jensen2021-03-311-3/+3
| | | | | | | | | | | | 'ps' is not a word - rather, it is a utility with its own manual page. As every other utility referenced in the file has it, append the relevant manual section that ps(1) can be found in. While here, also wordsmith a sentence to avoid awkward phrasing, and fix a typo. Pointy hat to: me Reported by: danfe, brueffer, maxim
* fortune/freebsd-tips: Add a few fortunesDaniel Ebdrup Jensen2021-03-301-0/+34
| | | | | These are fortunes I've used locally, probably for decades, so there's no reason why they shouldn't be available to everyone.
* fortune/freebsd-tips: Remove errant spacesDaniel Ebdrup Jensen2021-03-301-9/+10
| | | | | | | 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
* fortune/freebsd-tips: Remove bogus fortuneDaniel Ebdrup Jensen2021-03-301-3/+0
| | | | | | | | | | | | | | | | The RCS IDs have been retired as of the move to git, so on 14-CURRENT and 13.0-STABLE this fortune returns the following. This fortune brought to you by: $FreeBSD$ While faintly amusing the first time, this might just cause confusion for folks, and in addition it's not the most useful of tips, so doesn't add much. Therefore it seems prudent to get rid of it. MFC: Not to 11-STABLE or 12-STABLE.
* fortune: add a tip about gstatAlan Somers2021-02-261-0/+6
| | | | MFC after: 3 weeks
* fortune(6): Add EXIT STATUS and HISTORY sectionsGordon Bergling2021-01-031-1/+15
| | | | | | Obtained from: OpenBSD MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D27941
* Drop superfluous "of" from the systat example.Benedict Reuschling2020-11-251-1/+1
| | | | Notes: svn path=/head/; revision=368014
* Replace literal uses of /usr/local in C sources with _PATH_LOCALBASEStefan Eßer2020-10-271-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Literal references to /usr/local exist in a large number of files in the FreeBSD base system. Many are in contributed software, in configuration files, or in the documentation, but 19 uses have been identified in C source files or headers outside the contrib and sys/contrib directories. This commit makes it possible to set _PATH_LOCALBASE in paths.h to use a different prefix for locally installed software. In order to avoid changes to openssh source files, LOCALBASE is passed to the build via Makefiles under src/secure. While _PATH_LOCALBASE could have been used here, there is precedent in the construction of the path used to a xauth program which depends on the LOCALBASE value passed on the compiler command line to select a non-default directory. This could be changed in a later commit to make the openssh build consistently use _PATH_LOCALBASE. It is considered out-of-scope for this commit. Reviewed by: imp MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D26942 Notes: svn path=/head/; revision=367075
* fortune(6): Grammar fix for a hint on searching portsGordon Bergling2020-09-041-2/+2
| | | | | | | | | | PR: 249078 Submitted by: PauAmma <pauamma at gundo dot com> Reported by: PauAmma <pauamma at gundo dot com> MFC after: 3 days Notes: svn path=/head/; revision=365328
* fortune, strfile: Improve validation of command-line arguments.Mark Johnston2020-08-102-8/+19
| | | | | | | | | | | | - Avoid potential overflow when parsing a percentage. - Avoid truncation when copying file paths. PR: 246050 Submitted by: Akos Somfai <akos.somfai@gmail.com> (original) MFC after: 1 week Notes: svn path=/head/; revision=364083
* Revert r362466Baptiste Daroussin2020-06-221-1/+1
| | | | | | | | | Such change should not have happen without prior discussion and review. With hat: transitioning core Notes: svn path=/head/; revision=362488
* Improve wording to be more precise and clear.Hans Petter Selasky2020-06-211-1/+1
| | | | | | | | | | | | No functional change intended. s/Master Boot/Main Boot/ (also called MBR) MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=362466
* fortune: remove warning about potentially offensive fortunesEd Maste2020-05-281-7/+0
| | | | | | | | | | | They were removed long ago. PR: 246736 Submitted by: Ruby Lazuli Lord MFC after: 3 days Notes: svn path=/head/; revision=361596
* A few corrections and clarifications to r343406.Benedict Reuschling2019-01-281-10/+17
| | | | | | | | | | | | | | | | | | | | | - Use "in" instead of "on" when referring to directory and UFS partition. - Switch from hw.physmem to hw.realmem and add a description to distinguish the two. - Explain why the "df" command is having trouble displaying ZFS sizes correctly. Add a bit more descriptive text to help why the output of "zfs list -o space" should be used. - Switch to vmstat instead of iostat display for systat(1) as it shows more information on one screen. Describe what is displayed based on the text of the man page. Change the list of the other values accordingly. - Sort the flags to "zfs destroy" alphabetically. Reviewed by: rgrimes Approved by: rgrimes MFC after: 8 days Differential Revision: https://reviews.freebsd.org/D18993 Notes: svn path=/head/; revision=343532
* Add ZFS usage tips to freebsd-tips.Benedict Reuschling2019-01-241-4/+236
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a bunch of examples on how to use ZFS features like: - listing available space, - setting and displaying a userquota, - displaying pool I/O statistics and pool history, - displaying the compression ratio for a dataset, - various list options (sorting, removing headers), - performing a dry-run of a snapshot delete, - removing a range of snapshots, - setting a custom property, - preventing removal of a snapshot with ZFS holds, - permission sets for zfs send/receive. Additionally, clarify the existing examples a bit when it comes to displaying space by mentioning UFS explicitly. Other examples include displaying I/O in top(1), querying sysctl(8) for active CPUs and available RAM. Mention systat(1) and its options, too. While here, reformat the example to upload a dmesg(8) a bit to wrap properly. Thanks to Allan Jude for his help with some of the ZFS examples. Reviewed by: dru,allanjude Approved by: allanjude (earlier version) MFC after: 3 days Relnotes: yes (ZFS examples in freebsd-tips) Differential Revision: https://reviews.freebsd.org/D18541 Notes: svn path=/head/; revision=343406
* Add a fortune describing how to upload a machine's dmesg information to theBenedict Reuschling2018-11-191-0/+6
| | | | | | | | | | | | | | | | | | | NYCBUG database. We want to encourage our users to upload their dmesgs so that the project can get a better insight into what kind of hardware is run on. This helps in making data-driven decisions about i.e., platform and driver support. Note that dmesgs may contain sensitive information like hardware serial numbers, hence uploading them without review is discouraged. Reviewed by: brooks, imp, allanjude Approved by: allanjude MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D17705 Notes: svn path=/head/; revision=340649
* fortune(6): Fix gcc80 -Wbool-operation warnings.Pedro F. Giffuni2018-01-271-9/+9
| | | | | | | Hinted by: Dragonfly (git 4d1086765752f0569497d06460d95117c74f33ac) Notes: svn path=/head/; revision=328486
* Remove all fortune datfiles except freebsd-tips.Benno Rice2017-11-1413-74205/+1
| | | | | | | | | | | | | | | | | Humour is a funny thing. What is funny to one person is not funny to all people. What is insightful to one person is similarly not universal. The fortune datfiles have been around a long time and have undoubtedly amused people but it's time to acknowledge their subjective, and in some cases at least potentially offensive, nature and stop distributing them with the imprimatur of the FreeBSD project. If anyone wishes to distribute these via other mechanisms they are welcome to check them out of history and do so. MFC after: 2 days Notes: svn path=/head/; revision=325828
* Remove fortune quotes attributed to or providing admiration of Adolf HitlerMark Felder2017-11-131-79/+0
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=325781
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-313-3/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* The !! trick does not apply to all shellsEitan Adler2017-10-291-1/+1
| | | | | | | Requested by: emaste Notes: svn path=/head/; revision=325105
* Update URLs in usr.binEitan Adler2017-10-291-1/+1
| | | | | | | | | - http -> https - contents have moved locations - removal of URL if I could not find new location Notes: svn path=/head/; revision=325095