corteximplant.com is one of the many independent Mastodon servers you can use to participate in the fediverse.
CORTEX IMPLANT - an international cyberpunk'ish LGBTQIA+ friendly Fediverse instance for edgerunners, netrunners and cyberpunks and all who want to become one.

Administered by:

Server stats:

237
active users

#bash

12 posts12 participants1 post today
Randy<p>After putting it off for too long, I'm finally diving into Bash scripting to enhance my system administration skills! Automating tasks and improving efficiency are my goals. Tips and resources are welcome!</p><p><a href="https://social.randyyy.eu/tags/Bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Bash</span></a><br><a href="https://social.randyyy.eu/tags/Automation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Automation</span></a><br><a href="https://social.randyyy.eu/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a></p>
Linux Renaissance<h2>Let's Learn Linux Together And Pass LPIC-1 Exam: Lesson 103.1</h2> <p><a href="https://video.fosshq.org/videos/watch/4110dac4-1527-4332-873a-1750c54ab447" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">video.fosshq.org/videos/watch/</span><span class="invisible">4110dac4-1527-4332-873a-1750c54ab447</span></a></p>
naia<p>Today I learned: you can use `bind -x` to make bash execute code whenever you type some key chord.</p><p>Example: get CTRL-o to fuzzy-find a file. (using <a href="https://lor.sh/tags/fzf" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fzf</span></a> ❤️ )</p><p>```bash<br>bind -x '"\C-o": xdg-open $(fzf --height 50% --reverse)"<br>```</p><p>My *very* current setup is bit more than this, since I might want to jump<br>to a folder, and since my muscle memory is used to `C-x C-f` to <br>find-file under <a href="https://lor.sh/tags/emacs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>emacs</span></a> </p><p>```bash<br>bind -x '"\C-x\C-f": find_file "$(fzf --preview "bat --style=numbers --color=always --line-range :500 {}" --walker=file,dir,follow,hidden --height 50% --reverse)"'</p><p>find_file() {<br> echo<br> if [ -f $1 ];<br> then<br> echo "Opening "$(tput bold)$(tput setaf 2)$1$(tput sgr0) &amp;&amp; history -s xdg-open $1 &amp;&amp; xdg-open "$1" &amp;&amp; xdg-open "$1";<br> elif [ -d $1 ];<br> then<br> cd "$1" &amp;&amp; echo "Now at "$(tput bold)$(tput setaf 2)`pwd`$(tput sgr0);<br> fi<br>}<br>```</p><p><a href="https://lor.sh/tags/til" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>til</span></a> <a href="https://lor.sh/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a> <a href="https://lor.sh/tags/fzf" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fzf</span></a></p>
freespiritlinux :debian:<p>Hier ist der Link zur Fortsetzung unseres Terminal-Kurses für Anfänger. Ich muss noch einige Ergänzungen vornehmen, entschuldigt bitte die Unannehmlichkeiten.</p><p><a href="https://hedgedoc.linuxat.de//hd/s/VhUFnRiNv" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">hedgedoc.linuxat.de//hd/s/VhUF</span><span class="invisible">nRiNv</span></a></p><p><a href="https://mast.linuxat.de/tags/Terminal" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Terminal</span></a> <a href="https://mast.linuxat.de/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a> <a href="https://mast.linuxat.de/tags/Bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Bash</span></a></p>
Aaron Toponce ⚛️:debian:<p>If USA is so great, why do we have USB?</p><p><a href="https://fosstodon.org/tags/gnu" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gnu</span></a> <a href="https://fosstodon.org/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://fosstodon.org/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a></p>
Daigoro Toyama 🌸<p><span>I need to transition from Linux to Mac as I'm getting a Mac mini for work in a couple of weeks. Is zsh compatible with bash, as in: Do bash scripts generally run on zsh? If the answer is no, I will need to install the latest version of bash (which I believe is doable via Homebrew).<br><br></span><a href="https://sakurajima.social/tags/macos" rel="nofollow noopener" target="_blank">#macos</a> <a href="https://sakurajima.social/tags/bash" rel="nofollow noopener" target="_blank">#bash</a> <a href="https://sakurajima.social/tags/zsh" rel="nofollow noopener" target="_blank">#zsh</a></p>
Steven P. Sanderson II, MPH<p>"Curious about flow control in Linux?</p><p>🐧 Check out this article on using 'if' statements to make your scripts smarter! Learn how to branch your code effectively.</p><p>Read more at <a href="https://www.spsanderson.com/steveondata/posts/2025-03-14/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">spsanderson.com/steveondata/po</span><span class="invisible">sts/2025-03-14/</span></a> and share your thoughts!</p><p><a href="https://mstdn.social/tags/Blog" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Blog</span></a> <a href="https://mstdn.social/tags/Programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Programming</span></a> <a href="https://mstdn.social/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://mstdn.social/tags/Bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Bash</span></a> <a href="https://mstdn.social/tags/LinuxProgramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LinuxProgramming</span></a></p>
IT News<p>Linux Fu: Use the Source (Command), Luke - You can argue if bash is a good programming language or not, but you can’t argue t... - <a href="https://hackaday.com/2025/03/13/linux-fu-use-the-source-command-luke/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">hackaday.com/2025/03/13/linux-</span><span class="invisible">fu-use-the-source-command-luke/</span></a> <a href="https://schleuss.online/tags/hackadaycolumns" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hackadaycolumns</span></a> <a href="https://schleuss.online/tags/shellscript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shellscript</span></a> <a href="https://schleuss.online/tags/linuxhacks" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linuxhacks</span></a> <a href="https://schleuss.online/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://schleuss.online/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a></p>
Stephen McNamara<p>Do you like a <a href="https://mastodon.social/tags/dashboard" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dashboard</span></a>? Do you have <a href="https://mastodon.social/tags/android" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>android</span></a> devices?</p><p>Maybe you want to manage your devices on your network from a dashboard? </p><p>Remote display<br><a href="https://mastodon.social/tags/nix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nix</span></a> on android<br>Remote image flashing</p><p><a href="https://github.com/noflcl/dashdroid" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/noflcl/dashdroid</span><span class="invisible"></span></a></p><p>Written in <a href="https://mastodon.social/tags/JS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JS</span></a> and a bit of <a href="https://mastodon.social/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a> magic this is HIGHLY ALPHA with no security in mind since its my devices on my network.</p>
Daniël Franke :panheart:<p>Every so often I find a new feature of <a href="https://social.ainmosni.eu/tags/fish" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fish</span></a> that reminds me why I prefer it over <a href="https://social.ainmosni.eu/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a> or <a href="https://social.ainmosni.eu/tags/zsh" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>zsh</span></a>.</p><p>Today I was reminded to replace most of my aliases with fish abbreviations.</p><p>Granted, I already knew about abbreviations, but somehow never really used them extensively.</p>
Code of Amor 💘<p>Keeping track of an old slow spinning disk <code>rsync</code> transfer realistically like: <code>while true; do OLD_USED=$(df /mnt/mumlappy | awk '{if (NR==2) print $3}');NEW_USED=$(df /mnt/newlappy | awk '{if (NR==2) print $3}');echo $(((NEW_USED*100)/OLD_USED))%; sleep 60; clear; done</code><br><a href="https://social.codeofamor.net/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a><br><a href="https://social.codeofamor.net/tags/rsync" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rsync</span></a><br><a href="https://social.codeofamor.net/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a></p>
Norm<p>Just had a weird moment where, as I was typing my password into my password manager, I almost hit Tab expecting it to autocomplete... 🤦 </p><p><a href="https://fosstodon.org/tags/Password" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Password</span></a> <a href="https://fosstodon.org/tags/PasswordManager" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PasswordManager</span></a> <a href="https://fosstodon.org/tags/Autocomplete" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Autocomplete</span></a> <a href="https://fosstodon.org/tags/Bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Bash</span></a></p>
AskUbuntu<p>"Startup Applications" skips "Press any key to continue" statements in .sh script <a href="https://ubuntu.social/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a> #2204 <a href="https://ubuntu.social/tags/startupapplications" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>startupapplications</span></a></p><p><a href="https://askubuntu.com/q/1543525/612" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">askubuntu.com/q/1543525/612</span><span class="invisible"></span></a></p>
linkdrop<p>GitHub - bcyran/fancy-motd: Fancy, colorful MOTD written in bash. Server status at a glance. <a href="https://github.com/bcyran/fancy-motd" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/bcyran/fancy-motd</span><span class="invisible"></span></a> <a href="https://troet.cafe/tags/OpenSource" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenSource</span></a> <a href="https://troet.cafe/tags/GitHub" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GitHub</span></a> <a href="https://troet.cafe/tags/server" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>server</span></a> <a href="https://troet.cafe/tags/status" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>status</span></a> <a href="https://troet.cafe/tags/fancy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fancy</span></a> <a href="https://troet.cafe/tags/MOTD" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MOTD</span></a> <a href="https://troet.cafe/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a></p>
Marcus<p>Just fired off one of my weirder <a href="https://fosstodon.org/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a> commands:<br>`while ! !!;do sleep 1;done`<br>Repeat my previously typed commands until it doesn't fail anymore. But the `! !!` seems rather fun :D </p><p><a href="https://fosstodon.org/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a> <a href="https://fosstodon.org/tags/cli" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cli</span></a></p>
Jesień Linuksowa<p>🎥 Zautomatyzujmy bezpieczeństwo – zobacz prelekcję z Jesieni Linuksowej 2024.</p><p><span class="h-card" translate="no"><a href="https://mastodon.social/@rathann" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>rathann</span></a></span> pokazuje, jak dzięki Compliance As Code można automatycznie sprawdzać i wdrażać polityki bezpieczeństwa, np. CIS Benchmark, za pomocą skryptów w Bashu lub Ansible.</p><p>Link do nagrania: <a href="https://tube.pol.social/w/5bBvy8awY1SsMhCvBoBrZ9" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">tube.pol.social/w/5bBvy8awY1Ss</span><span class="invisible">MhCvBoBrZ9</span></a></p><p><a href="https://fosstodon.org/tags/security" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>security</span></a> <a href="https://fosstodon.org/tags/automation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>automation</span></a> <a href="https://fosstodon.org/tags/compliance" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>compliance</span></a> <a href="https://fosstodon.org/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a> <a href="https://fosstodon.org/tags/ansible" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ansible</span></a> <a href="https://fosstodon.org/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://fosstodon.org/tags/opensource" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>opensource</span></a> #⁠jesieńlinuksowa</p>
Areskul<p>Make your <a href="https://mastodon.social/tags/JSON" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JSON</span></a> pretty, colorful and scrollable<br>in terminal.</p><p>(command that output json) | jq -C | less</p><p>- jq -C -&gt; indent and force color output<br>- less -&gt; let you navigate through the result.</p><p>I may state the obvious, but it's always cool to know or remember 😜.</p><p><a href="https://mastodon.social/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> <a href="https://mastodon.social/tags/developer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>developer</span></a> <a href="https://mastodon.social/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a></p>
Norm<p>I have a <a href="https://fosstodon.org/tags/Bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Bash</span></a> alias (actually a function) for `git clone` that sets my <a href="https://fosstodon.org/tags/git" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>git</span></a> config username and email address based on a prompt (I can select between various accounts/SSH keys I have).</p><p>I now want to do a similar thing for `git init`. Is there an easy way to call the same bash code for the prompt and setting git config values without duplicating it all between my two functions?</p><p>AFAIK bash functions cannot return values (e.g. my chosen username/email)...</p><p><a href="https://fosstodon.org/tags/BashAlias" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>BashAlias</span></a> <a href="https://fosstodon.org/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a> <a href="https://fosstodon.org/tags/coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coding</span></a> <a href="https://fosstodon.org/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a></p>
Dennis Faucher :donor: :mastodon:<p>Yeah, atuin is pretty nice for giving shell history a GUI (TUI)<br><a href="https://docs.atuin.sh/guide/installation/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">docs.atuin.sh/guide/installati</span><span class="invisible">on/</span></a><br><a href="https://infosec.exchange/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a> <a href="https://infosec.exchange/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a> <a href="https://infosec.exchange/tags/shell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shell</span></a></p>
happyborg<p><span class="h-card" translate="no"><a href="https://fosstodon.org/@djspiewak" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>djspiewak</span></a></span> I've probably learned and forgotten that one a dozen times due to 'sabbatical' scripting. 🤦‍♂️ </p><p>Thanks so much, now, please someone tell me there's a 'cargo check / cargo fix' equivalent for <a href="https://fosstodon.org/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a>!</p>