#Bash

2025-05-21

Collègue : tu peux refaire les 390 scripts d'installation pour passer en version 1.5 ?
Moi : oui
5 minutes après ....
Moi : c'est fait !
Collègue : Comment c'est possible aussi vite de modifier tous les fichiers ?
find . -type f -exec sed -i 's/SetupVersion = "1.4"/SetupVersion = "1.5"/g' {} +
#Linux #script #bash

Andrija Petrovicandrija@floss.social
2025-05-20

With a lot of help from #ChatGPT, after a lot of fine-tuning, I've come up with a #bash script that will (should?) keep my development tidy.
gist.github.com/andrija-hers/6
Principles:
1. All the repos are siblings in a megadirectory that has sync_repos.bash, repos.txt and subtrees.txt
2. repos.txt define which #git paths get cloned in what directory
3. subtrees.txt define at what location does which repo get git subtree-d

We'll see how far this script will evolve as my real work progresses.

const_dataconst_data
2025-05-20

Help protect your data with Backup in Style.

github.com/cybervenom01/backup

I found where they make the Bourne Again SHell!
#bash #shell

Storefront with BASH written above the doors.
Dendrobatus AzureusDendrobatus_Azureus@bsd.cafe
2025-05-19

$ last | lolcat

I Love 💕 the colourful output of lolcat

#bash #csh #sh #tksh #ksh #zsh #fish #POSIX #last #lolcat

The screencap shows a computer screen with a bash terminal window open, displaying last; a list of system boot entries. The terminal window is set against a background image of a rural landscape with a cloudy sky, a structure resembling a small hut (sluis in NL lang), and some trees. The terminal window is titled "RemAD," and the tabs at the top include "Azureus," "BanaGado," "Poderoso," and "cmos." The list of boot entries includes various timestamps, user names, and system versions, with colors ranging from green to red, indicating, lolcat colours, not different statuses or times. The terminal window is open on a Linux operating system, as indicated by the "system boot" entries and the "RemAD" title, which is a Linux distribution. The background image is in sepia, with the terminal window overlaying it, creating a contrast between the technical interface and the natural scene.

Ovis2-8B

🌱 Energy used: 0.191 Wh
2025-05-19

Γκερδαμε αδερφια, η αναγνωριση ερχεται απο τα εξωτερικα, γραφουνε για το παιχνιδι που εφτιαξα:
itsfoss.com/sausage/

Repo link:
gitlab.com/christosangel/sausa
#linux #terminal #tui #bash

A worm showing a screenshot of sausage terminal game
No Starch Pressnostarch
2025-05-18

"The Linux Command Line" (2nd Edition) offers a comprehensive journey from first keystrokes to advanced Bash scripting.

Linux, building on its rich Unix heritage, became the bedrock of internet infrastructure and the open-source movement.

From dedicated distros like Kali to forensic analysis, network defense, and system hardening, a granular understanding of the command line is key. This book reinforces that expertise.

Written by @william_shotts

A photo of the textbook "The Linux Command Line, A Complete Introduction," written by William Shotts and published by No Starch Press.
Daniel Wayne Armstrongdwarmstrong@fosstodon.org
2025-05-18

On FreeBSD, which interactive shell do you primarily use for your non-root user?

If "other", perhaps leave a comment about which shell it is.

#FreeBSD #shell #sh #bash #ksh #zsh #fishshell

Kushal Das :python: :tor:kushal@toots.dgplug.org
2025-05-18

Just now found out brush.sh/ a #bash compatible shell written in #rust.

2025-05-18

Hey everyone! I have a question that I can't for the life of me find the answer to via searching online, so I need your help!

I am currently running Windows 11 on my daily driver (I know, I know), and I am running through a detailed checklist before I migrate to Debian 12. I have made a list of the software I regularly use, as well as Linux alternatives of software that may need to be changed to an alternate, I have thought through my workflow, and taken notes on things that are important to me and that I may need to customize on the installation. I have Debian 12 on 2 different VMs that I use for different things on my daily driver, as well as on my home server which runs all of my more critical services.

The main question I am having trouble with is that my AMD CPU doesn't have integrated graphics, and I am concerned that the drivers for my RTX 3050 won't be installed by default during the graphical installation. Should I make any preparations for this? Will the open-source Nvidia drivers be installed by default? Should I make any changes to the installation media before starting the installation?

I have already backed up everything on my C drive redundantly and have system images on my NAS ready to go should there be any issues, so I'm not worried about that, I am just maybe overly concerned about the fact that I don't have integrated graphics in my CPU and there may not be native GPU drivers for my GPU.

Edit: Also, I'd appreciate any ideas you guys have about fun practice BASH scripts to write as I am currently refining my skills with BASH scripting. I have already written a backup script for my media server, an update script to set to run weekly with cron, a number multiplication script that asks you for two numbers, and a script that tells me the exact size of directories that I enter when it asks me for a path.

#linux #linuxhelp #debian #endof10 #nvidia #bash #script #scripting

Nicolas Mouartsilentexception
2025-05-17

The nohup command in Linux is a very useful command to remember when working in SSH/remote sessions, otherwise the system will send a SIGHUP signal and will terminate the process (on closure or session timeout).
Basically, don't forget to -nohup- if you don't want to have to drive miles away, and/or send someone onsite!

src : en.wikipedia.org/wiki/SIGHUP
digitalocean.com/community/tut

The picture of an old modem with the phone off the hook.A digital image of an octopus eathing a pizza and listening to music in its headphones.
LINUXexpert.orglinuxexpert
2025-05-17

📢 Tired of doing the same sysadmin tasks over and over?

Check out this new post from LINUXexpert.org:
🔗 linuxexpert.org/supercharge-yo

It highlights a set of free, GPLv3 Bash automation scripts that work across Linux distros to make your life easier. These scripts are clean, modular, and Cron-ready.

🔧 Save time
🧠 Reduce human error
🚀 Work smarter

Free Script Friday: I forgot to post a free script yesterday. Here you go. I use this script to record live streams. It works with various live streaming services and m3u8 files. It can record and play in mpv player or record in the background without playing or just play without recording. hastebin.teklynk.com/fazipayag #freescriptfriday #bash #linux #code #linuxmint

2025-05-17

imagine your BASH-script is so bad,
it breaks btrfs and creates a directory that contains 24000 other directories with the same name

2025-05-17

Linux script which counts the number of subfolders with at least one letter "c"" #bash

askubuntu.com/q/1547898/612

2025-05-17

#Camera #WebCam #Dysk #Bash #df #Linux #LinuxTools #ProgressBars

======

Oddly useful Linux tools you probably haven't seen before - YouTube
youtube.com/watch?v=32O0a6qCQa

Youtube video showing dysk, webcamize and xephyr among others
2025-05-16

$ dmesg|less

$ last|less

$ uptime

$ id|lolcat

#Linux #Bash #csh #ksh #zsh #fish #sh

2025-05-16

Me and Kubernetes are not friends

Kubernetes in all its gloryWe are not enemies either. These days I'm mostly indifferent, that's all. I used to oppose K8S with every inch of my body. Not anymore, at least. Frankly, it's not K8S [...]

🔗 chbk.co/3IlGK

#bash #debian #docker #ghost #linux #nginx #prometheus #shell #kubernetes

Center for Health Data Scienceheads@datasci.social
2025-05-16

💻 Mastering the Terminal with Bash & Unix 💻

Learn to work with large datasets using #Bash & #Unix in this 2-day #workshop! Master #command-line tools, #scripts & #pipelines—a must-have skill for data scientists & biomedical researchers handling registry, clinical & high-throughput data.

🗓 23 & 26 June
📍 UCPH, Panum
✏ Register: heads.ku.dk/calendar/2025/cour

#Bash #Unix #CommandLine #Terminal #DataScience #Bioinformatics #Research #PhD #BigData

2025-05-16

I've been using #Linux for 17 years and I still come across something new everyday.

Today's thing, is that I didn't know I could set a #bash variable at the front of a command. Or that the assignment was locally scoped.

e.g.; in Ruby you run rails_env=production /bin/ctl --scriptoption

And I thought it was awful strange that you could set a variable like that, so I started playing with it, and it only works when passed into scripts, not later in the command line.

@sj @hal_pomeranz

A screenshot of a terminal shows that echo $cat is an empty variable 
A script is shown that echo's the contents of $cat 
A command line is show that sets the cat variable to "dog" then calls the previous script. "dog" is printed.
A command line is shown that sets the cat variable and then echo's $cat. There is no output.

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst