lingo.lol is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for linguists, philologists, and other lovers of languages.

Server stats:

64
active users

#bash

2 posts2 participants0 posts today
xinqu<p>Hey why didn't anyone tell me that there is a readline variable called "completion-ignore-case" in <a href="https://mastodon.bsd.cafe/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</span></a> ?</p><p>Such a relief.</p><p>Maybe I also treat myself with "completion-map-case" later.</p>
ShawnT 🐀<p>Fired: `logout`<br>Tired: `exit`<br>Wired: Control+d</p><p><a href="https://mastodon.coffee/tags/Linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Linux</span></a> <a href="https://mastodon.coffee/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</span></a></p>
Diego Córdoba 🇦🇷<p>Buenos días <a href="https://mstdn.io/tags/fediverso" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fediverso</span></a>!!! Tengan un excelente miércoles!! ⚡ </p><p>Como es ya costumbre, vamos con una nueva pregunta de examen sobre Linux! 🐧 </p><p>Una fácil, para amenizar el día 🙂 </p><p>❓¿Qué comando puede utilizarse para obtener el número de líneas de un archivo?</p><p>Los leo! 👇 💬 </p><p><a href="https://mstdn.io/tags/linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>linux</span></a> <a href="https://mstdn.io/tags/gnu" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>gnu</span></a> <a href="https://mstdn.io/tags/aprender_linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>aprender_linux</span></a> <a href="https://mstdn.io/tags/learnlinux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>learnlinux</span></a> <a href="https://mstdn.io/tags/juncotic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>juncotic</span></a> <a href="https://mstdn.io/tags/command" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>command</span></a> <a href="https://mstdn.io/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</span></a></p>
🌈 ☯️Teresita🐧👭<p>Your top ten bash commands, visually:</p><p><a href="https://techhub.social/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</span></a> line:</p><p>$ awk '{print $1}' ~/.bash_history | sort | uniq -c | sort -nr | head -10 &gt; freq.txt &amp;&amp; commands &amp;</p><p>----</p><p>(Calls the following executable Python script named "commands"): </p><p>#! /usr/bin/python3<br>import matplotlib.pyplot as plt<br>commands = []<br>counts = []<br>with open('freq.txt', 'r') as f:<br> for line in f:<br> count, command = line.strip().split(maxsplit=1)<br> commands.append(command)<br> counts.append(int(count))<br>plt.figure(figsize=(10, 6))<br>plt.barh(commands[::-1], counts[::-1], color='skyblue')<br>plt.xlabel("Usage Count")<br>plt.title("Top 10 Bash Commands by Frequency")<br>plt.tight_layout()<br>plt.show()</p><p>----</p><p><a href="https://techhub.social/tags/N5" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>N5</span></a></p>
stevE 🌼<p>(2) So ist für uns z.B. eigentlich auch eine Protokollfunktion wie sie wohl die <a href="https://freiburg.social/tags/MySkodaApp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>MySkodaApp</span></a> bietet hilfreich, aber dann doch (noch?) nicht wichtig genug, diese Analyse zu ignorieren: <br><a href="https://reports.exodus-privacy.eu.org/de/reports/cz.skodaauto.myskoda/latest/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">reports.exodus-privacy.eu.org/</span><span class="invisible">de/reports/cz.skodaauto.myskoda/latest/</span></a></p><p>Nach interessanten Abschnitten und Ladevorgängen kann ich auch die Daten vom Display (und aus den Lade-Abrechnungen) händisch erfassen. Leider müssen dazu alle Türen geschlossen sein, aber mit der App <a href="https://freiburg.social/tags/LabLog" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>LabLog</span></a> geht es dann immerhin recht flott. <br>Praktisch ist dabei die direkte Anbindung via <a href="https://freiburg.social/tags/mqtt" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>mqtt</span></a> die so die Daten direkt im <a href="https://freiburg.social/tags/SmartHomeServer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SmartHomeServer</span></a> wie z.B. <a href="https://freiburg.social/tags/HomeAssistant" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>HomeAssistant</span></a> verfügbar macht...</p><p>...bzw. in unserem Fall (alles auf einem <a href="https://freiburg.social/tags/RaspberryPi" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RaspberryPi</span></a> mit <a href="https://freiburg.social/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</span></a> Skripten selbst implementiert) ressourcenschonend über einen cloud broker mit einem simplen mosquitto_sub ... &gt;&gt; eautolog.jsonl. </p><p>2/2 </p><p><a href="https://freiburg.social/tags/EAutoDaten" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>EAutoDaten</span></a> <a href="https://freiburg.social/tags/FLOSS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>FLOSS</span></a> <a href="https://freiburg.social/tags/FOSS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>FOSS</span></a> <a href="https://freiburg.social/tags/fdroid" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fdroid</span></a> <a href="https://freiburg.social/tags/Protokoll" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Protokoll</span></a> <a href="https://freiburg.social/tags/Wissenschaft" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Wissenschaft</span></a> <a href="https://freiburg.social/tags/erfassen" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>erfassen</span></a> <a href="https://freiburg.social/tags/Smarthome" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Smarthome</span></a> <a href="https://freiburg.social/tags/Datenschutz" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Datenschutz</span></a></p>
Dendrobatus Azureus<p><span class="h-card" translate="no"><a href="https://mastodon.bsd.cafe/@fbfortune" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>fbfortune</span></a></span> </p><p>This works in all POSIX compliant Operating Systems </p><p><a href="https://mastodon.bsd.cafe/tags/POSIX" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>POSIX</span></a> <a href="https://mastodon.bsd.cafe/tags/sh" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sh</span></a> <a href="https://mastodon.bsd.cafe/tags/Bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Bash</span></a> <a href="https://mastodon.bsd.cafe/tags/csh" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>csh</span></a> <a href="https://mastodon.bsd.cafe/tags/zsh" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>zsh</span></a> <a href="https://mastodon.bsd.cafe/tags/ksh" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ksh</span></a> <a href="https://mastodon.bsd.cafe/tags/tksh" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tksh</span></a></p>
KaiXinHey fedi friends, what are the differences in USES and config options listed at <a href="https://www.freshports.org/" rel="nofollow noopener noreferrer" target="_blank">#freshports</a> for a <a href="https://snac.bsd.cafe?t=freebsd" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#FreeBSD</a> <a href="https://snac.bsd.cafe?t=port" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#port</a>? I am familiar with USE in <a href="https://snac.bsd.cafe?t=gentoo" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#Gentoo</a> <a href="https://snac.bsd.cafe?t=linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#Linux</a>, which seem to be the config options here? For <a href="https://snac.bsd.cafe?t=gentoo" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#Gentoo</a> it is very common to use different USE settings for a packages, but for <a href="https://snac.bsd.cafe?t=freebsd" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#FreeBSD</a> I read from porter's handbook there are not many USE items and they looked different from the term in <a href="https://snac.bsd.cafe?t=gentoo" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#Gentoo</a>. I am still trying to wrap my head around what is happening that whenever I try to build a port, like <a href="https://snac.bsd.cafe?t=vim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#vim</a> or <a href="https://snac.bsd.cafe?t=git" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#git</a> in tiny flavors, I constantly noticed <a href="https://snac.bsd.cafe?t=perl" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#Perl</a> <a href="https://snac.bsd.cafe?t=bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#Bash</a> <a href="https://snac.bsd.cafe?t=lua" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#lua</a> <a href="https://snac.bsd.cafe?t=rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#Rust</a> <a href="https://snac.bsd.cafe?t=python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#Python</a> and all other seemingly unrelated stuff get pulled in. <a href="https://snac.bsd.cafe?t=bsd" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#BSD</a> <a href="https://snac.bsd.cafe?t=runbsd" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#RunBSD</a> <a href="https://snac.bsd.cafe?t=unix" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#Unix</a> <a href="https://snac.bsd.cafe?t=foss" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#FOSS</a><br>
Dendrobatus Azureus<p><span class="h-card"><a href="https://polymaths.social/@rl_dane" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>rl_dane</span></a></span></p><p>I rewrote this post specifically from this server to get it properly formatted in <em>markdown</em></p><p><a href="https://polymaths.social/tags/vim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vim</span></a> <a href="https://polymaths.social/tags/vimmasterrace" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>VimMasterRace</span></a> <a href="https://polymaths.social/tags/brammolenaar" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>BramMolenaar</span></a> <a href="https://polymaths.social/tags/amiga" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Amiga</span></a> <a href="https://polymaths.social/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</span></a> <a href="https://polymaths.social/tags/sh" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sh</span></a> <a href="https://polymaths.social/tags/zsh" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>zsh</span></a> <a href="https://polymaths.social/tags/ksh" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ksh</span></a> <a href="https://polymaths.social/tags/csh" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>csh</span></a> <a href="https://polymaths.social/tags/tsh" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tsh</span></a>&nbsp;&nbsp;<a href="https://polymaths.social/tags/100daysofcode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>100DaysOfCode</span></a> <a href="https://polymaths.social/tags/posix" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>POSIX</span></a> <a href="https://polymaths.social/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Programming</span></a> <a href="https://polymaths.social/tags/markdown" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>markdown</span></a></p>
Dendrobatus Azureus<p><span class="h-card"><a href="https://polymaths.social/@rl_dane" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>rl_dane</span></a></span></p><p>Thank you for this wonderful tip</p><p>So it's</p><pre><code>:match Conceal /^.*$/ :set conceallevel=3 :highlight Conceal NONE </code></pre><p>When you're finished, just do</p><pre><code>:match </code></pre><p><a href="https://polymaths.social/tags/vim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vim</span></a> <a href="https://polymaths.social/tags/vimmasterrace" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>VimMasterRace</span></a> <a href="https://polymaths.social/tags/brammolenaar" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>BramMolenaar</span></a> <a href="https://polymaths.social/tags/amiga" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Amiga</span></a> <a href="https://polymaths.social/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</span></a> <a href="https://polymaths.social/tags/sh" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sh</span></a> <a href="https://polymaths.social/tags/zsh" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>zsh</span></a> <a href="https://polymaths.social/tags/ksh" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ksh</span></a> <a href="https://polymaths.social/tags/csh" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>csh</span></a> <a href="https://polymaths.social/tags/tsh" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tsh</span></a>&nbsp;&nbsp;<a href="https://polymaths.social/tags/100daysofcode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>100DaysOfCode</span></a> <a href="https://polymaths.social/tags/posix" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>POSIX</span></a> <a href="https://polymaths.social/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Programming</span></a></p>
Dendrobatus Azureus<p>How to compile C sources</p><pre><code>$ ./configure; make; make check; make install </code></pre><p>Make sure to check the references in your shell regarding compilation also<br>The man pages are your friend</p><p><a href="https://polymaths.social/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Bash</span></a> <a href="https://polymaths.social/tags/csh" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>csh</span></a> <a href="https://polymaths.social/tags/ksh" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ksh</span></a> <a href="https://polymaths.social/tags/c" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>C</span></a> <a href="https://polymaths.social/tags/configure" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>configure</span></a> <a href="https://polymaths.social/tags/asm" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ASM</span></a> <a href="https://polymaths.social/tags/make" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>make</span></a> <a href="https://polymaths.social/tags/install" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>install</span></a></p>
Kevin Karhan :verified:<p><span class="h-card" translate="no"><a href="https://mastodon.social/@cleverboi" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>cleverboi</span></a></span> <span class="h-card" translate="no"><a href="https://hessen.social/@rdfhrn" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>rdfhrn</span></a></span> <span class="h-card" translate="no"><a href="https://circumstances.run/@davidgerard" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>davidgerard</span></a></span> I know...</p><ul><li>If I could change it, I'd make the default shell of <a href="https://infosec.space/tags/Linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Linux</span></a> inti <a href="https://infosec.space/tags/fish" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fish</span></a> instead of <a href="https://infosec.space/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</span></a>...</li></ul>
Lars Wirzenius<p>I experimented with not having persistent shell history, after <span class="h-card" translate="no"><a href="https://hachyderm.io/@simontatham" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>simontatham</span></a></span> blogged about it.</p><p>Good:<br>- higher threshold for writing long complicated commands<br>- lower threshold for writing shell scripts instead</p><p>Bad:<br>- writing shell scripts</p><p>I've since started experimenting with the Fish shell, and it brings a whole different level to the shell history game. So far I like it.</p><p><a href="https://toot.liw.fi/tags/UnixShell" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnixShell</span></a> <a href="https://toot.liw.fi/tags/shell" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>shell</span></a> <a href="https://toot.liw.fi/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</span></a> <a href="https://toot.liw.fi/tags/fishShell" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fishShell</span></a> <a href="https://toot.liw.fi/tags/fish" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fish</span></a></p>
woollypigs<p><span class="h-card" translate="no"><a href="https://chaos.social/@bassistance" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>bassistance</span></a></span> Look what I have just found <a href="https://bashforever.com/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">bashforever.com/</span><span class="invisible"></span></a> <a href="https://sudomakecake.com/tags/Bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Bash</span></a> <a href="https://sudomakecake.com/tags/IRC" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>IRC</span></a></p>
Kevin Karhan :verified:<p><span class="h-card" translate="no"><a href="https://circumstances.run/@davidgerard" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>davidgerard</span></a></span> problem is that I can't rely on <a href="https://infosec.space/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> being available and being allowed to install it!</p><ul><li>Whereas <a href="https://infosec.space/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</span></a> (or a subset of it as in <a href="https://infosec.space/tags/toybox" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>toybox</span></a>) does exist on any <a href="https://infosec.space/tags/Linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Linux</span></a> that isn't specifically <em>not</em> having it...</li></ul>
Chris M.<p>Diese Woche ist übrigens wieder ein <a href="https://social.saarland/tags/linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>linux</span></a> <a href="https://social.saarland/tags/vhs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vhs</span></a> Kurs zu Ende gegangen. Mit 3 Teilnehmern ging es in 5 Terminen um Konzepte wie Rechtesystem, Prozesse, Shellskripte, den Umgang mit der <a href="https://social.saarland/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</span></a> und natürlich <a href="https://social.saarland/tags/vim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vim</span></a>.</p><p>Den Teilnehmern hat's gefallen und mir wieder sehr viel Spaß gemacht. Vielleicht läuft der Kurs im nächsten Semester ja wieder.</p>
Mauricio Teixeira 🇺🇸🇧🇷<p>On a different note: I was trying something on the side, and was dropped into a ZSH shell (as opposed to Bash), and it was pretty interesting. Made me consider trying it further on my daily driver.</p><p><a href="https://hachyderm.io/tags/HomeLab" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>HomeLab</span></a> <a href="https://hachyderm.io/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</span></a> <a href="https://hachyderm.io/tags/zsh" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>zsh</span></a></p>
Pheonix<p>Okay, so I wanted to share a little incident from a few months back that really hammered home the power of knowing your Linux internals when things go sideways. I got a frantic call, "something weird is going on with our build server, it's acting sluggish and our monitoring is throwing odd network alerts." No fancy EDR on this particular box, just the usual ssh and bash. My heart always sinks a little when it's a Linux box with vague symptoms, because you know it's time to get your hands dirty.</p><p>First thing I did, even before reaching for any specific logs, was to get a quick snapshot of the network. Instead of netstat, which honestly feels a bit dated now, I immediately hit ss -tunap. That p is crucial cause it shows you the process and user ID for each connection. What immediately jumped out was an outbound TCP connection on a high port to a sketchy-looking IP, and it was tied to a process that definitely shouldn't have been making external calls. My gut tightened. I quickly followed up with lsof -i just to be super sure no deleted binaries were clinging on to network connections.</p><p>With that IP and PID in hand, I moved to process investigation. pstree -ap was my next stop. It showed the suspicious process, and more importantly, its parent. It wasn't a child of systemd or a normal service. It was spawned by a build script that shouldn't have been executing anything like this. That hierarchical view was key. Then, to really understand what this thing was doing, I dared to strace -p &lt;PID&gt;. Watching the system calls unfurl was like watching a movie of its malicious intent: it was reading from /etc/passwd, making connect() calls, and trying to write to some odd /tmp directories. Simultaneously, I checked ls -l /proc/&lt;PID&gt;/exe to confirm the actual binary path (it was indeed in /tmp) and /proc/&lt;PID&gt;/cwd to see its working directory. No doubt, this was a rogue process.</p><p>Knowing it was a fresh infection, I immediately shifted to the filesystem. My go-to is always find / -type f -newermt '2 days ago' -print0 | xargs -0 ls -latr. This quickly pulls up any files modified in the last 48 hours, sorted by modification time. It's often where you find dropped payloads, modified configuration files, or suspicious scripts. Sure enough, there were a few more binaries in /tmp and even a suspicious .sh script in a developer's home directory. I also scanned for SUID/SGID binaries with find / -perm /6000 just in case they'd dropped something for privilege escalation. And while stat's timestamps can be tampered with, I always glance at atime, mtime, and ctime on suspicious files; sometimes, a subtle mismatch offers a tiny clue if the attacker wasn't meticulous.</p><p>The final piece of the puzzle, and often the trickiest, is persistence. I checked the usual suspects: crontab -l for root and every other user account I could find. Then I cast a wider net with grep -r "suspect_domain_or_ip" /etc/cron.* /etc/systemd/system/ /etc/rc.d/ and similar common boot directories. Sure enough, a new systemd timer unit had been added that was scheduled to execute the /tmp binary periodically. Finally, I didn't forget the user dotfiles (~/.bashrc, ~/.profile, etc.). It’s surprising how often an attacker will drop a malicious alias or command in there, assuming you won't dig deep into a developer's setup.</p><p>Long story short, we quickly identified the ingress vector, isolated the compromise, and cleaned up the persistence. But what really stuck with me is how quickly you can triage and understand an incident if you're comfortable with these fundamental Linux commands. There's no substitute for getting your hands dirty and really understanding what strace is showing you or why ss is superior to netstat in a high-pressure situation. These tools are your best friends in a firefight.</p><p><a href="https://infosec.exchange/tags/linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>linux</span></a> <a href="https://infosec.exchange/tags/incidentresponse" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>incidentresponse</span></a> <a href="https://infosec.exchange/tags/blueteam" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>blueteam</span></a> <a href="https://infosec.exchange/tags/forensics" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>forensics</span></a> <a href="https://infosec.exchange/tags/shell" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>shell</span></a> <a href="https://infosec.exchange/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</span></a> <a href="https://infosec.exchange/tags/sysadmin" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sysadmin</span></a> <a href="https://infosec.exchange/tags/infosec" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>infosec</span></a> <a href="https://infosec.exchange/tags/threathunting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>threathunting</span></a> <a href="https://infosec.exchange/tags/lessonslearned" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lessonslearned</span></a></p>
coucou<p><a href="https://toot.community/tags/sh" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sh</span></a> <a href="https://toot.community/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</span></a> integration into <a href="https://toot.community/tags/vim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vim</span></a> ,<br> esp. reading output from external commands</p><p><a href="https://www.howtoforge.com/tutorial/how-to-access-shell-or-run-external-commands-from-within-vim/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">howtoforge.com/tutorial/how-to</span><span class="invisible">-access-shell-or-run-external-commands-from-within-vim/</span></a></p>
Livia Weigel<p>here are some of my personal <a href="https://sciences.social/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</span></a> scripts, including:<br>- a scraper previously mentioned<br>- my backup scripts<br>- a stupid simple <a href="https://sciences.social/tags/markdown" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>markdown</span></a> templater from my current research project</p><p><a href="https://codeberg.org/liviaw/shell_scripts" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">codeberg.org/liviaw/shell_scri</span><span class="invisible">pts</span></a></p>
Gleb Ebert<p>I enjoyed writing my first blog post last weekend, so I thought I'd write another one. This one is about a <a href="https://mstdn.science/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</span></a> script that became a <a href="https://mstdn.science/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> script and is now a package. All because I was too lazy to label plates and tubes in the lab by hand. The post is mostly about the history and motivation behind the package, i.e. the stuff that does't really fit into the README</p><p><a href="https://www.gl-eb.me/blog/posts/2025-05-25_generate-labels/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">gl-eb.me/blog/posts/2025-05-25</span><span class="invisible">_generate-labels/</span></a></p><p><a href="https://mstdn.science/tags/quarto" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>quarto</span></a> <a href="https://mstdn.science/tags/foss" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>foss</span></a> <a href="https://mstdn.science/tags/Pypi" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Pypi</span></a> <a href="https://mstdn.science/tags/uv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>uv</span></a></p>