I don’t believe that does the same thing either. What if I lock my computer, sleep it, and step away for the day? I haven’t logged out, but my interactive session has ended.
Badabinski
Alt account of @Badabinski
Just a sweaty nerd interested in software, home automation, emotional issues, and polite discourse about all of the above.
- 0 Posts
- 149 Comments
Uptime shows how long the system has been up, not how long one has been interacting with the system.
idk who downvoted you, it’s a very common sentiment. I advocate for
<<<, but a pipe is often fine when performance doesn’t matter.
Idk, writing POSIX-compliant shell is so miserable that I avoid doing it when I can. You can use Bash on BSD and all other unixes, so it’s still a relatively portable solution.
I was waiting for someone to come along with this response lmao
I’m terrible at remembering shell string operation syntax, but this is the ultimate answer.
no pipe necessary, just
sed -E 's/TH|[EL ]|DO//g' <<<"$line"
Badabinski@kbin.earthto
Linux@lemmy.ml•How is there not a ubiquitous modding platform for Linux yet?
2·24 days agoIt does! The ease of exporting/importing mod packs as codes is part of what really sold me on it. r2modman’s UX around that task leaves something to be desired imo
Badabinski@kbin.earthto
Linux@lemmy.ml•How is there not a ubiquitous modding platform for Linux yet?
2·24 days agoIf you’re using r2modman, you should check out Gale. It’s basically a drop-in replacement that’s WAY faster and has far better UX in my opinion.
If they stop zigbee2mqtt from automagically updating their bulbs then they’re dead to me.
If you want more help with Bash in the future, this is the best resource I’ve found in 13 years of writing bash professionally: https://mywiki.wooledge.org/EnglishFrontPage
Bash FAQs and pitfalls are the primary sections to look at there.
Thank you for providing the easiest and most portable answer. This will handle files with special characters perfectly unlike most of the responses here which rely on a
whileloop (to say nothing of aforloop ).
Shell scripts are one of the worst possible applications of an LLM. They’re trained on shit fucking GitHub scripts, and they give you shit in return.
You may have a bit of a hard time finding something that’s completely FLOSS that’s not on the older side (the sar visualizer being a Java desktop application being a consequence of that age). There are various ways to dump resource usage into a time series database like Prometheus (Apache2), InfluxDB (Apache2/MIT), or VictoriaMetrics (Apache2) and then visualize it with a frontend (Grafana, APGL). The database is going to be the tricky part. All of the time series DBs I’m aware of are permissively licensed. Grafana may be a good fit for you, however. It’s written in Go so it’s relatively light, although it obviously requires a browser to interact with.
It does, the repo is tagged as AGPL.
Badabinski@kbin.earthto
Open Source@lemmy.ml•My thoughts on GPL vs. permissive licenses
8·2 months agoWas this done according to proper clean-room design principles? If so, then imo the GPL is still working as intended. The company had to spend a fuckton of money and time getting one engineer to read the source and describe what was done to other engineers, and then ensure that one engineer never ever worked on the project again.
If they didn’t do that then they violated the GPL and someone should report them to the SFLC.
I’m not using it because it would be extremely inconvenient for me, but I think that the English language deserves to have the thorn returned to it.
Where would be manually modifying
modules.depand map files on this, I wonder?
Badabinski@kbin.earthto
Linux@lemmy.ml•Hate Systemd? A New Init System(Nitro) Debuts as a Minimalist Process Supervisor for Linux
5·5 months agoIt also lacks any form of dependency management AFAICT. I don’t think there’s any way to say you depend on another service. I’m guessing you can probably order things lexically? But that’s, uh, shitty and bad.



journalctl -b -1will show you the logs from the previous boot.journalctl -k -b -1will do the same for the kernel logs. If you’ve rebooted again since, just use -2 instead of -1.