home.social

#bashscripting — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #bashscripting, aggregated by home.social.

fetched live
  1. Today I had an idea for an interactive REPL for local PHP. Like similar to what TInkerwell does, but written in bash, tmux and linux builtins.

    I think this will be a fun little project. 🙂

  2. Today I had an idea for an interactive REPL for local PHP. Like similar to what TInkerwell does, but written in bash, tmux and linux builtins.

    I think this will be a fun little project. 🙂

  3. PSA for anyone auditing Linux fleets: getent passwd is NOT the same as cat /etc/passwd when LDAP or SSSD is configured. Your audit scripts will miss every centrally-managed account if you only parse the local file.

    Also, useradd's default shell comes from /etc/default/useradd -- on many distros that's /bin/bash. If you're creating service accounts without --shell /usr/sbin/nologin, you're handing out interactive shells.

    #LinuxSecurity #SysAdmin #BashScripting #Security #DevSecOps #InfoSec

  4. PSA for anyone auditing Linux fleets: getent passwd is NOT the same as cat /etc/passwd when LDAP or SSSD is configured. Your audit scripts will miss every centrally-managed account if you only parse the local file.

    Also, useradd's default shell comes from /etc/default/useradd -- on many distros that's /bin/bash. If you're creating service accounts without --shell /usr/sbin/nologin, you're handing out interactive shells.

    #LinuxSecurity #SysAdmin #BashScripting #Security #DevSecOps #InfoSec

  5. PSA for anyone auditing Linux fleets: getent passwd is NOT the same as cat /etc/passwd when LDAP or SSSD is configured. Your audit scripts will miss every centrally-managed account if you only parse the local file.

    Also, useradd's default shell comes from /etc/default/useradd -- on many distros that's /bin/bash. If you're creating service accounts without --shell /usr/sbin/nologin, you're handing out interactive shells.

    #LinuxSecurity #SysAdmin #BashScripting #Security #DevSecOps #InfoSec

  6. PSA for anyone auditing Linux fleets: getent passwd is NOT the same as cat /etc/passwd when LDAP or SSSD is configured. Your audit scripts will miss every centrally-managed account if you only parse the local file.

    Also, useradd's default shell comes from /etc/default/useradd -- on many distros that's /bin/bash. If you're creating service accounts without --shell /usr/sbin/nologin, you're handing out interactive shells.

    #LinuxSecurity #SysAdmin #BashScripting #Security #DevSecOps #InfoSec

  7. PSA for anyone auditing Linux fleets: getent passwd is NOT the same as cat /etc/passwd when LDAP or SSSD is configured. Your audit scripts will miss every centrally-managed account if you only parse the local file.

    Also, useradd's default shell comes from /etc/default/useradd -- on many distros that's /bin/bash. If you're creating service accounts without --shell /usr/sbin/nologin, you're handing out interactive shells.

    #LinuxSecurity #SysAdmin #BashScripting #Security #DevSecOps #InfoSec

  8. Sobald man es richtig macht, funktioniert es. Immer wieder spannend. 🤷‍♂️🙈😅

    #Linux #BashScripting

  9. Sobald man es richtig macht, funktioniert es. Immer wieder spannend. 🤷‍♂️🙈😅

    #Linux #BashScripting

  10. Sobald man es richtig macht, funktioniert es. Immer wieder spannend. 🤷‍♂️🙈😅

    #Linux #BashScripting

  11. Sobald man es richtig macht, funktioniert es. Immer wieder spannend. 🤷‍♂️🙈😅

    #Linux #BashScripting

  12. Hey you #bashscripting dergs! I'm working on a shell script and I need help understanding what the command command does. I basically ran command ls is and it seems to just run ls. I have no man entry for this in Debian, and looking up, "what does the command command do" really confuses the search engine lol. Please help! #codinghelp

  13. Regex песочница

    В данной статье описывается процесс реализации песочницы для регулярных выражений с помощью платформы для контейнеризации Docker и утилит Linux. Цель - получить ограниченную среду, куда пользователь может подключиться по SSH и где у него будет минимум возможностей, чтобы он ничего не сломал, но мог свободно использовать регулярные выражения как со встроенными в среду txt заготовками, так и со своим произвольным пользовательским вводом.

    habr.com/ru/articles/1008668/

    #docker #bash #bashscripting #chroot #shell

  14. Regex песочница

    В данной статье описывается процесс реализации песочницы для регулярных выражений с помощью платформы для контейнеризации Docker и утилит Linux. Цель - получить ограниченную среду, куда пользователь может подключиться по SSH и где у него будет минимум возможностей, чтобы он ничего не сломал, но мог свободно использовать регулярные выражения как со встроенными в среду txt заготовками, так и со своим произвольным пользовательским вводом.

    habr.com/ru/articles/1008668/

    #docker #bash #bashscripting #chroot #shell

  15. Regex песочница

    В данной статье описывается процесс реализации песочницы для регулярных выражений с помощью платформы для контейнеризации Docker и утилит Linux. Цель - получить ограниченную среду, куда пользователь может подключиться по SSH и где у него будет минимум возможностей, чтобы он ничего не сломал, но мог свободно использовать регулярные выражения как со встроенными в среду txt заготовками, так и со своим произвольным пользовательским вводом.

    habr.com/ru/articles/1008668/

    #docker #bash #bashscripting #chroot #shell

  16. #Bash (Bourne Again Shell) ist die Standard-Shell in den meisten #Linux Distributionen und #macOS. Sie bietet nicht nur eine leistungsfähige Kommandozeilen-Schnittstelle, sondern auch eine vollwertige Skriptsprache. Mit Bash-Skripten kannst du Aufgaben automatisieren, komplexe Workflows erstellen und deine Produktivität als Systemadministrator oder Entwickler erheblich steigern.

    Egal, ob du ein kompletter Neuling in der Welt der Kommandozeile bist oder deine Kenntnisse auffrischen möchtest, dieser Artikel wird dir einen soliden Einstieg in die faszinierende Welt der Bash-Skripte bieten.

    https://admindocs.de/bash-grundlagen/bash-grundkurs-erstelle-dein-erstes-bash-shell-skript-und-fuehre-es-aus.shtml

    #linuxlearning #bashscripting #linuxadmin #sysadmin #systemadministration

  17. #Bash (Bourne Again Shell) ist die Standard-Shell in den meisten #Linux Distributionen und #macOS. Sie bietet nicht nur eine leistungsfähige Kommandozeilen-Schnittstelle, sondern auch eine vollwertige Skriptsprache. Mit Bash-Skripten kannst du Aufgaben automatisieren, komplexe Workflows erstellen und deine Produktivität als Systemadministrator oder Entwickler erheblich steigern.

    Egal, ob du ein kompletter Neuling in der Welt der Kommandozeile bist oder deine Kenntnisse auffrischen möchtest, dieser Artikel wird dir einen soliden Einstieg in die faszinierende Welt der Bash-Skripte bieten.

    https://admindocs.de/bash-grundlagen/bash-grundkurs-erstelle-dein-erstes-bash-shell-skript-und-fuehre-es-aus.shtml

    #linuxlearning #bashscripting #linuxadmin #sysadmin #systemadministration

  18. #Bash (Bourne Again Shell) ist die Standard-Shell in den meisten #Linux Distributionen und #macOS. Sie bietet nicht nur eine leistungsfähige Kommandozeilen-Schnittstelle, sondern auch eine vollwertige Skriptsprache. Mit Bash-Skripten kannst du Aufgaben automatisieren, komplexe Workflows erstellen und deine Produktivität als Systemadministrator oder Entwickler erheblich steigern.

    Egal, ob du ein kompletter Neuling in der Welt der Kommandozeile bist oder deine Kenntnisse auffrischen möchtest, dieser Artikel wird dir einen soliden Einstieg in die faszinierende Welt der Bash-Skripte bieten.

    https://admindocs.de/bash-grundlagen/bash-grundkurs-erstelle-dein-erstes-bash-shell-skript-und-fuehre-es-aus.shtml

    #linuxlearning #bashscripting #linuxadmin #sysadmin #systemadministration

  19. 🌸➡️🔥 ¡Comienza el Verano en el hemisferio sur!

    Mientras el calendario todavía bosteza, mi Conky ya hizo el cálculo:
    🌍 hemisferio sur detectado
    📐 latitud validada
    📅 solsticio confirmado
    🔥 Verano iniciado

    Todo gracias a un script en Bash corriendo en segundo plano, sin nubes, sin apps mágicas, solo lógica y terminal 💻✨

    Si tu escritorio no te avisa cuándo cambia la estación… ¿realmente es tuyo? 😏

    #Conky #verano 🌞🩴🕶️ #antix #BashScripting #HemisferioSur

    🚴‍♂️ Pruébalo: github.com/DrCalambre/OpenWeat

  20. 🌸➡️🔥 ¡Comienza el Verano en el hemisferio sur!

    Mientras el calendario todavía bosteza, mi Conky ya hizo el cálculo:
    🌍 hemisferio sur detectado
    📐 latitud validada
    📅 solsticio confirmado
    🔥 Verano iniciado

    Todo gracias a un script en Bash corriendo en segundo plano, sin nubes, sin apps mágicas, solo lógica y terminal 💻✨

    Si tu escritorio no te avisa cuándo cambia la estación… ¿realmente es tuyo? 😏

    #Conky #verano 🌞🩴🕶️ #antix #BashScripting #HemisferioSur

    🚴‍♂️ Pruébalo: github.com/DrCalambre/OpenWeat

  21. 🌸➡️🔥 ¡Comienza el Verano en el hemisferio sur!

    Mientras el calendario todavía bosteza, mi Conky ya hizo el cálculo:
    🌍 hemisferio sur detectado
    📐 latitud validada
    📅 solsticio confirmado
    🔥 Verano iniciado

    Todo gracias a un script en Bash corriendo en segundo plano, sin nubes, sin apps mágicas, solo lógica y terminal 💻✨

    Si tu escritorio no te avisa cuándo cambia la estación… ¿realmente es tuyo? 😏

    #Conky #verano 🌞🩴🕶️ #antix #BashScripting #HemisferioSur

    🚴‍♂️ Pruébalo: github.com/DrCalambre/OpenWeat

  22. The Bug Hunter’s Automator: Why Bash Scripting is Your Greatest Force Multiplier
    This article advocates for Bash scripting as a critical automation tool for bug bounty hunters, transforming fragmented manual workflows into efficient pipelines. The core problem addressed is the cognitive overhead of chaining reconnaissance tools manually (subfinder → httpx → waybackurls → nmap), which fragments focus and wastes time babysitting terminal outputs. The solution centers on creating Bash scripts that: (1) **Chain tools via pipes** into automated sequences, (2) **Handle output redirection** and logging automatically, and (3) **Implement error handling** and retry logic for failed requests. Key concepts include using `tee` for logging intermediate results, leveraging parallel execution flags, embedding sleep/retry loops for rate-limited targets, and creating reusable functions for common workflows. Benefits include eliminating idle wait times (scripts run while planning), reducing human error from manual copying, and freeing mental bandwidth for deep analysis and complex exploitation work. The article positions automation not as laziness but as strategic force multiplication, shifting effort from tedious labor to high-impact investigation. Practical implementation covers shell script basics, tool integration patterns, and workflow optimization for sustained efficiency during long engagements. #infosec #BugBounty #Cybersecurity #Automation #BashScripting
    santhosh-adiga-u.medium.com/th

  23. The Bug Hunter’s Automator: Why Bash Scripting is Your Greatest Force Multiplier
    This article advocates for Bash scripting as a critical automation tool for bug bounty hunters, transforming fragmented manual workflows into efficient pipelines. The core problem addressed is the cognitive overhead of chaining reconnaissance tools manually (subfinder → httpx → waybackurls → nmap), which fragments focus and wastes time babysitting terminal outputs. The solution centers on creating Bash scripts that: (1) **Chain tools via pipes** into automated sequences, (2) **Handle output redirection** and logging automatically, and (3) **Implement error handling** and retry logic for failed requests. Key concepts include using `tee` for logging intermediate results, leveraging parallel execution flags, embedding sleep/retry loops for rate-limited targets, and creating reusable functions for common workflows. Benefits include eliminating idle wait times (scripts run while planning), reducing human error from manual copying, and freeing mental bandwidth for deep analysis and complex exploitation work. The article positions automation not as laziness but as strategic force multiplication, shifting effort from tedious labor to high-impact investigation. Practical implementation covers shell script basics, tool integration patterns, and workflow optimization for sustained efficiency during long engagements. #infosec #BugBounty #Cybersecurity #Automation #BashScripting
    santhosh-adiga-u.medium.com/th

  24. The Bug Hunter’s Automator: Why Bash Scripting is Your Greatest Force Multiplier
    This article advocates for Bash scripting as a critical automation tool for bug bounty hunters, transforming fragmented manual workflows into efficient pipelines. The core problem addressed is the cognitive overhead of chaining reconnaissance tools manually (subfinder → httpx → waybackurls → nmap), which fragments focus and wastes time babysitting terminal outputs. The solution centers on creating Bash scripts that: (1) **Chain tools via pipes** into automated sequences, (2) **Handle output redirection** and logging automatically, and (3) **Implement error handling** and retry logic for failed requests. Key concepts include using `tee` for logging intermediate results, leveraging parallel execution flags, embedding sleep/retry loops for rate-limited targets, and creating reusable functions for common workflows. Benefits include eliminating idle wait times (scripts run while planning), reducing human error from manual copying, and freeing mental bandwidth for deep analysis and complex exploitation work. The article positions automation not as laziness but as strategic force multiplication, shifting effort from tedious labor to high-impact investigation. Practical implementation covers shell script basics, tool integration patterns, and workflow optimization for sustained efficiency during long engagements. #infosec #BugBounty #Cybersecurity #Automation #BashScripting
    santhosh-adiga-u.medium.com/th

  25. The Bug Hunter’s Automator: Why Bash Scripting is Your Greatest Force Multiplier
    This article advocates for Bash scripting as a critical automation tool for bug bounty hunters, transforming fragmented manual workflows into efficient pipelines. The core problem addressed is the cognitive overhead of chaining reconnaissance tools manually (subfinder → httpx → waybackurls → nmap), which fragments focus and wastes time babysitting terminal outputs. The solution centers on creating Bash scripts that: (1) **Chain tools via pipes** into automated sequences, (2) **Handle output redirection** and logging automatically, and (3) **Implement error handling** and retry logic for failed requests. Key concepts include using `tee` for logging intermediate results, leveraging parallel execution flags, embedding sleep/retry loops for rate-limited targets, and creating reusable functions for common workflows. Benefits include eliminating idle wait times (scripts run while planning), reducing human error from manual copying, and freeing mental bandwidth for deep analysis and complex exploitation work. The article positions automation not as laziness but as strategic force multiplication, shifting effort from tedious labor to high-impact investigation. Practical implementation covers shell script basics, tool integration patterns, and workflow optimization for sustained efficiency during long engagements. #infosec #BugBounty #Cybersecurity #Automation #BashScripting
    santhosh-adiga-u.medium.com/th

  26. Cet aprèm', je m'attèle à la création d'un script en bash. J'ai des bases comme tout dev', mais ici, je plonge un peu plus dans le langage. L'objectif est de faciliter l'installation de plein de trucs avant de cloner un repo (celui du taf) : installer node, docker, git, crée une clé ssh, configurer le compte github en global, etc.
    C'est un début, et il manque forcément des trucs (genre la gestion des erreurs 👀 ), mais c'est cool de découvrir l'univers des scripts bash (J'ai plus l'habitude des scripts en js ^^')

    #script #bashScripting #dev #VisMaVieDeDev

  27. Cet aprèm', je m'attèle à la création d'un script en bash. J'ai des bases comme tout dev', mais ici, je plonge un peu plus dans le langage. L'objectif est de faciliter l'installation de plein de trucs avant de cloner un repo (celui du taf) : installer node, docker, git, crée une clé ssh, configurer le compte github en global, etc.
    C'est un début, et il manque forcément des trucs (genre la gestion des erreurs 👀 ), mais c'est cool de découvrir l'univers des scripts bash (J'ai plus l'habitude des scripts en js ^^')

    #script #bashScripting #dev #VisMaVieDeDev

  28. Cet aprèm', je m'attèle à la création d'un script en bash. J'ai des bases comme tout dev', mais ici, je plonge un peu plus dans le langage. L'objectif est de faciliter l'installation de plein de trucs avant de cloner un repo (celui du taf) : installer node, docker, git, crée une clé ssh, configurer le compte github en global, etc.
    C'est un début, et il manque forcément des trucs (genre la gestion des erreurs 👀 ), mais c'est cool de découvrir l'univers des scripts bash (J'ai plus l'habitude des scripts en js ^^')

    #script #bashScripting #dev #VisMaVieDeDev

  29. Aus Langeweile mal ein Script gebastelt, was mir mittels yt-dlp ganze Playlisten bei YouTube herunterlädt, mit Titelnummern versieht und Ordnernamen anhand der Playlistbezeichnung erstellt.

    Genauere Beschreibung gibt es hier:

    christiansblog.eu/tutorials/ba

    #linux #bashscripting #holzdiebimeinsatz #debian #ytdlp

  30. И снова USB-IP — сервер теперь с автобиндом и детачем и сам подхватит ключ клиент

    HA - как много в этом слове: Автоматический перенос виртуальных машин в кластере. 8 секунд и, например, сервер терминалов сменил место жительства совместно со всеми своими предустановленными программами - в другую серверную. И ... оставил аппаратные лицензии и ЭЦП, заботливыми руками проброшенные в виртуалки, тоскливо торчать из, возможно, погибшего железа. Отставить "оставил"!

    habr.com/ru/articles/901988/

    #usbip #linux #alt_linux #debian #systemd #bashscripting #распределенные_системы

  31. И снова USB-IP — сервер теперь с автобиндом и детачем и сам подхватит ключ клиент

    HA - как много в этом слове: Автоматический перенос виртуальных машин в кластере. 8 секунд и, например, сервер терминалов сменил место жительства совместно со всеми своими предустановленными программами - в другую серверную. И ... оставил аппаратные лицензии и ЭЦП, заботливыми руками проброшенные в виртуалки, тоскливо торчать из, возможно, погибшего железа. Отставить "оставил"!

    habr.com/ru/articles/901988/

    #usbip #linux #alt_linux #debian #systemd #bashscripting #распределенные_системы

  32. И снова USB-IP — сервер теперь с автобиндом и детачем и сам подхватит ключ клиент

    HA - как много в этом слове: Автоматический перенос виртуальных машин в кластере. 8 секунд и, например, сервер терминалов сменил место жительства совместно со всеми своими предустановленными программами - в другую серверную. И ... оставил аппаратные лицензии и ЭЦП, заботливыми руками проброшенные в виртуалки, тоскливо торчать из, возможно, погибшего железа. Отставить "оставил"!

    habr.com/ru/articles/901988/

    #usbip #linux #alt_linux #debian #systemd #bashscripting #распределенные_системы

  33. Интересный case

    Ковыряясь в скриптах наткнулся на интересный case. Чё тут интересного то? Подсказка, это не цикл. Да, вот эти вот break'и выглядят тут совершенно инородно. Возможно когда-то этот кусок эм, кода работал в цикле и break каким-то боком был нужен? Но сейчас цикла нет а brake есть. Бомбит? Бомбит до такой степени что я решился писнуть небольшую статейку про case . На 100%-ю полноту освещения не претендую, все мои эксперименты лишь очень поверхностные но несколько точек постараюсь расставить. Рассмотрим case

    habr.com/ru/articles/872608/

    #bash #bashскрипт #bash_scripting #bashscripting #bashпрограммирование #case

  34. Интересный case

    Ковыряясь в скриптах наткнулся на интересный case. Чё тут интересного то? Подсказка, это не цикл. Да, вот эти вот break'и выглядят тут совершенно инородно. Возможно когда-то этот кусок эм, кода работал в цикле и break каким-то боком был нужен? Но сейчас цикла нет а brake есть. Бомбит? Бомбит до такой степени что я решился писнуть небольшую статейку про case . На 100%-ю полноту освещения не претендую, все мои эксперименты лишь очень поверхностные но несколько точек постараюсь расставить. Рассмотрим case

    habr.com/ru/articles/872608/

    #bash #bashскрипт #bash_scripting #bashscripting #bashпрограммирование #case

  35. Интересный case

    Ковыряясь в скриптах наткнулся на интересный case. Чё тут интересного то? Подсказка, это не цикл. Да, вот эти вот break'и выглядят тут совершенно инородно. Возможно когда-то этот кусок эм, кода работал в цикле и break каким-то боком был нужен? Но сейчас цикла нет а brake есть. Бомбит? Бомбит до такой степени что я решился писнуть небольшую статейку про case . На 100%-ю полноту освещения не претендую, все мои эксперименты лишь очень поверхностные но несколько точек постараюсь расставить. Рассмотрим case

    habr.com/ru/articles/872608/

    #bash #bashскрипт #bash_scripting #bashscripting #bashпрограммирование #case

  36. [Перевод] История оболочки Bash и чему она нас может научить

    В этот день, практически в канун католического рождества, 23 декабря 1996 года, вышла оболочка Bash версии 2.0. Последний мажорный релиз на сегодня — это версия 5.3 . Сейчас Bash встроена почти во все версии Linux и MacOS, а также заявлена как встроенный компонент Microsoft Windows. Bash поставляется по умолчанию почти во всех дистрибутивах Linux и современных версиях MacOS и, как ожидается, вскоре он станет неотъемлемой частью Windows Terminal . Bash действительно повсюду и это не фигура речи. Как до этого дошло? В сегодняшней статье мы глубоко исследуем этот вопрос, задавая вопросы именно тем людям, которые причастны к разработке оболочек.

    habr.com/ru/companies/avito/ar

    #linux #avito #unix #shell #bashscripting #оболочка #история_it #перевод