Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: bash Clear Filter

Bash Prompts Collection

Bash Prompts This web page is a child of the Bash Prompt HOWTO that I'm maintaining for the Linux Documentation Project. The HOWTO explains a lot more than I'm going to here. My interest in Bash Prompts developed when I found "The BashPrompt Themes Project (now long deceased). Some of their prompts show up here, and a lot of what I've done shows the influence of their work. I started these pages because so many people have been mailing me cool prompts that I couldn't see putting them all in t

Vet is a safety net for the curl | bash pattern

vet is a command-line tool that acts as a safety net for the common but risky curl | bash pattern. It lets you inspect remote scripts for changes, run them through a linter, and require your explicit approval before they can execute. Don't just run it, vet it. The Problem We've all seen this pattern for installing software: # This is convenient, but you're blindly trusting the remote script. curl -sSL https://example.com/install.sh | bash This is dangerous. The script could be malicious, th

Colodebug: A simple way to improve bash script debugging (2021)

COLODEBUG: a simple way to improve bash script debugging In this article, I will show you an easy-to-use, simple, and non-disruptive way to extend a GNU bash script by a few lines that can help make sense of its execution flow at runtime a fair bit easier. Using this method will also allow you to effortlessly add a “verbose” execution mode to scripts you create or extend. It also improves the usefulness of set -x aka xtrace mode. The method is compatible with zsh, and maybe also other advanced

Topics: bash dev script sd ssds

Vet is a safety net for the risky curl | bash pattern

vet is a command-line tool that acts as a safety net for the common but risky curl | bash pattern. It lets you inspect remote scripts for changes, run them through a linter, and require your explicit approval before they can execute. Don't just run it, vet it. The Problem We've all seen this pattern for installing software: # This is convenient, but you're blindly trusting the remote script. curl -sSL https://example.com/install.sh | bash This is dangerous. The script could be malicious, th

Deep Down the Rabbit Hole: Bash, OverlayFS, and a 30-Year-Old Surprise

Deep Down the Rabbit Hole: Bash, OverlayFS, and a 30-Year-Old Surprise This blog post recounts a recent debugging session that uncovered a surprising set of issues involving Bash, getcwd() , and OverlayFS. What began as a simple customer bug report evolved into a deep dive worth sharing. Initial Bug Report A customer reported that OpenSSH scp failed after switching to OverlayFS. We found the following error in the logs: shell-init: error retrieving current directory: \ getcwd: cannot access

Fly To Podman: a script that will help you to migrate from Docker

Migrate from Docker to Podman. fly-to-podman is a small bash script that helps you migrate from Docker to Podman. It will migrate your Docker containers, images, and volumes to Podman, as well as keep your container data and configurations (mounts, ports, etc.) intact. Full blog post: From Docker to Podman: full migration to rootless