Beginner-friendly Bash project: Real-time CPU Usage Monitor Script (with alerts + logs)
Sharing a small Bash automation project I built for practice. This noscript monitors CPU usage in real-time using
Step-by-step explanation: https://youtu.be/nVU1JIWGnmI
Complete source code at https://github.com/Abhilashchauhan1994/bash\_noscripts/blob/main/cpu\_usage.sh
https://redd.it/1p4nobz
@r_bash
Sharing a small Bash automation project I built for practice. This noscript monitors CPU usage in real-time using
top \+ awk, sends an alert when the CPU crosses a threshold, and logs usage automatically. Step-by-step explanation: https://youtu.be/nVU1JIWGnmI
Complete source code at https://github.com/Abhilashchauhan1994/bash\_noscripts/blob/main/cpu\_usage.sh
https://redd.it/1p4nobz
@r_bash
YouTube
YOU WON'T BELIEVE How Easy Monitoring CPU Usage Is with Bash
In this step-by-step guide, you’ll learn how to create a CPU Usage Monitor Script using Bash noscripting — one of the most powerful tools for Linux automation.
Whether you’re just starting out or looking to enhance your DevOps and Linux skills, this Bash Scripting…
Whether you’re just starting out or looking to enhance your DevOps and Linux skills, this Bash Scripting…
GitHub - DeclanEaton04/OVN-Flow-1.0.0-Bash-Based-OpenVPN-Client-with-Multi-Config-Support: Bash CLI Interface | Lightweight OpenVPN Client with Dual-Layer Connection Verification, Multi-Configuration & Profile Support.
https://github.com/DeclanEaton04/OVN-Flow-1.0.0-Bash-Based-OpenVPN-Client-with-Multi-Config-Support
https://redd.it/1p5f4we
@r_bash
https://github.com/DeclanEaton04/OVN-Flow-1.0.0-Bash-Based-OpenVPN-Client-with-Multi-Config-Support
https://redd.it/1p5f4we
@r_bash
GitHub
GitHub - DeclanEaton04/OVN-Flow-1.0.0-Bash-Based-OpenVPN-Client-with-Multi-Config-Support: Bash CLI Interface | Lightweight OpenVPN…
Bash CLI Interface | Lightweight OpenVPN Client with Dual-Layer Connection Verification, Multi-Configuration & Profile Support. - GitHub - DeclanEaton04/OVN-Flow-1.0.0-Bash-Based-OpenVPN-C...
OVN-Flow | Bash-Based OpenVPN Client
https://github.com/DeclanEaton04/OVN-Flow-1.0-VPN-Client
https://redd.it/1p5lvhz
@r_bash
https://github.com/DeclanEaton04/OVN-Flow-1.0-VPN-Client
https://redd.it/1p5lvhz
@r_bash
GitHub
GitHub - DeclanEaton04/OVN-Flow-1.0-VPN-Client: Bash CLI Interface | Lightweight OpenVPN Client with Dual-Layer Connection Verification…
Bash CLI Interface | Lightweight OpenVPN Client with Dual-Layer Connection Verification, Multi-Configuration & Profile Support. - GitHub - DeclanEaton04/OVN-Flow-1.0-VPN-Client: Bash CLI I...
I've collected all my useful bash noscripts and command aliases into one CLI, but I want more!
https://github.com/Dark-Alex-17/dtools
https://redd.it/1p5wd31
@r_bash
https://github.com/Dark-Alex-17/dtools
https://redd.it/1p5wd31
@r_bash
GitHub
GitHub - Dark-Alex-17/dtools: All-in-one CLI for your command line tasks: cloud management (AWS/GCP), databases, AI tools, plotting…
All-in-one CLI for your command line tasks: cloud management (AWS/GCP), databases, AI tools, plotting, system maintenance, and more. - Dark-Alex-17/dtools
Fish like ghost completion for bash
Hi Guys,
I tried to implement fish like autocompletion suggestion for bash but I overrides the current prompt. I am trying to make this better. If you have any suggestions please let me know.
https://github.com/h-jangra/Ghost.sh
https://preview.redd.it/zjcryf5ghk3g1.png?width=1053&format=png&auto=webp&s=fbe74f55ffcbd91864ae07c4f14fdefb5a3150e3
https://redd.it/1p733ip
@r_bash
Hi Guys,
I tried to implement fish like autocompletion suggestion for bash but I overrides the current prompt. I am trying to make this better. If you have any suggestions please let me know.
https://github.com/h-jangra/Ghost.sh
https://preview.redd.it/zjcryf5ghk3g1.png?width=1053&format=png&auto=webp&s=fbe74f55ffcbd91864ae07c4f14fdefb5a3150e3
https://redd.it/1p733ip
@r_bash
GitHub
GitHub - h-jangra/Ghost.sh: Ghost text suggestions in bash
Ghost text suggestions in bash. Contribute to h-jangra/Ghost.sh development by creating an account on GitHub.
Run bash in a retro-styled terminal multiplexer with a classic MS-DOS aesthetic
https://www.reddit.com/gallery/1p4ppts
https://redd.it/1p7epbf
@r_bash
https://www.reddit.com/gallery/1p4ppts
https://redd.it/1p7epbf
@r_bash
Reddit
From the Ubuntu community on Reddit: A modern, retro-styled terminal multiplexer with a classic MS-DOS aesthetic
Explore this post and more from the Ubuntu community
How to assign default value to variable and convert to uppercase in 1 line?
I typed this in the browser search box and Google AI said this is supposed to work
VAR=${VAR^^:-DEFAULT_VALUE}
I tried it inside a noscript file (.sh) and in the console and it does not work.
Any ideas on how it can be done? thanks
PS: I'm using bash 5.x
https://redd.it/1p7uof7
@r_bash
I typed this in the browser search box and Google AI said this is supposed to work
VAR=${VAR^^:-DEFAULT_VALUE}
I tried it inside a noscript file (.sh) and in the console and it does not work.
Any ideas on how it can be done? thanks
PS: I'm using bash 5.x
https://redd.it/1p7uof7
@r_bash
Reddit
From the bash community on Reddit
Explore this post and more from the bash community
Bash tool to view Linux group info
I was reading the book "Practical Linux System Administration" and it mentioned the "groupmems" command, and I noticed it's missing on Debian 13. So I wrote a small Bash noscript to view regular group members and improved it over a few days.
It only shows regular group info. It can list groups with no members, it separates users for whom a group is primary from those for whom it’s supplementary, and a few other small features.
I'll add some account sprawl checks to it I guess.
If you think of anything practical that fits the scope, I can add it.
https://github.com/mim-s/gshow
https://redd.it/1p6qjkd
@r_bash
I was reading the book "Practical Linux System Administration" and it mentioned the "groupmems" command, and I noticed it's missing on Debian 13. So I wrote a small Bash noscript to view regular group members and improved it over a few days.
It only shows regular group info. It can list groups with no members, it separates users for whom a group is primary from those for whom it’s supplementary, and a few other small features.
I'll add some account sprawl checks to it I guess.
If you think of anything practical that fits the scope, I can add it.
https://github.com/mim-s/gshow
https://redd.it/1p6qjkd
@r_bash
GitHub
GitHub - mim-s/gshow: Bash tool to view Linux group info
Bash tool to view Linux group info. Contribute to mim-s/gshow development by creating an account on GitHub.
I challenge you to answer this question :)
Which awk command will correctly parse the /proc/1234/smaps file to sum the Pss (Proportional Set Size) memory for all private, clean memory mappings belonging to the process?
A. awk '/^Pss:/ {pss=$2} /Private_Clean/ {sum += pss} END {print sum}' /proc/1234/smaps
B. awk '/^Pss:/ {sum += $2} END {print sum}' /proc/1234/smaps
C. awk '/Private_Clean/ {getline; if ($1=="Pss:") sum+=$2} END {print sum}' /proc/1234/smaps
D. awk 'BEGIN {RS="\\n\\n"} /Private_Clean/ {for(i=1;i<=NF;i++) if($i=="Pss:") {sum+=$(i+1); break}} END {print sum}' /proc/1234/smaps
https://redd.it/1p836c3
@r_bash
Which awk command will correctly parse the /proc/1234/smaps file to sum the Pss (Proportional Set Size) memory for all private, clean memory mappings belonging to the process?
A. awk '/^Pss:/ {pss=$2} /Private_Clean/ {sum += pss} END {print sum}' /proc/1234/smaps
B. awk '/^Pss:/ {sum += $2} END {print sum}' /proc/1234/smaps
C. awk '/Private_Clean/ {getline; if ($1=="Pss:") sum+=$2} END {print sum}' /proc/1234/smaps
D. awk 'BEGIN {RS="\\n\\n"} /Private_Clean/ {for(i=1;i<=NF;i++) if($i=="Pss:") {sum+=$(i+1); break}} END {print sum}' /proc/1234/smaps
https://redd.it/1p836c3
@r_bash
Reddit
From the bash community on Reddit
Explore this post and more from the bash community