Some errors, just from the first few sections alone.<p>From section 1:<p>* "man hier" is out of date, alas. <a href="https://unix.stackexchange.com/a/567405/5132" rel="nofollow">https://unix.stackexchange.com/a/567405/5132</a><p>* If one is going to have a Linux/FreeBSD/Solaris split, one needs to apply it to section 1. "lsbrelease" is a Linux-based operating system only command.<p>* Debian now includes /etc/os-release . Interestingly, so too does DragonFlyBSD (but not FreeBSD).<p>* "last reboot" has been supposedly superseded in systemd operating systems, by "journalctl -b".<p>* "atacontrol" was superseded by "camcontrol" in FreeBSD back in 2012. <a href="https://www.freebsd.org/releases/9.0R/relnotes-detailed.html#AEN1308" rel="nofollow">https://www.freebsd.org/releases/9.0R/relnotes-detailed.html...</a><p>* Not even everyone has /var/log/messages any more, or /var/log/warn . Even Debian has, just last month, made the systemd journal its primary on-disc storage.<p>* Use "vipw" to avoid having to remember to recompile master.passwd . It respects $EDITOR .<p>* Most Linux operating systems do not use run levels <i>at all</i> now. <a href="http://jdebp.uk./FGA/run-levels-are-history.html" rel="nofollow">http://jdebp.uk./FGA/run-levels-are-history.html</a><p>In section 2:<p>* The ps flags are 30 years out of date for the BSDs. BSD switched ps to use getopt() at the start of the 1990s, and they've officially started with a minus sign all of that time since.<p>* The better trace program on FreeBSD, and the only one on OpenBSD, is the original BSD ktrace/kdump .<p>In section 3:<p>* FreeBSD partitioning is done with "gpart".<p>I stopped there. There are probably some howlers under installation and shells, given how outdated some of the other stuff was. Debian and Ubuntu changed /bin/sh to the Debian Almquist shell a decade and a bit ago. FreeBSD replaced pkg with pkg-ng in version 9. These are two very common errors that I see.
A thread from 2015: <a href="https://news.ycombinator.com/item?id=10022729" rel="nofollow">https://news.ycombinator.com/item?id=10022729</a><p>2010: <a href="https://news.ycombinator.com/item?id=1411075" rel="nofollow">https://news.ycombinator.com/item?id=1411075</a>
Is there a tool that returns linux system information in json format, that works for most kernel versions and / is actively supported? i think it would be easier to pipe through jq in order to get a desired value, rather then pipe through grep/awk/sed.
I've needed this for a long time!<p>One word: anyone know why it Firefox mobile can't scale the page text up? No issue on Brave/Chrome mobile.