chmod: Change Mode — Change the read/write/execute permissions of a file. chmod changes file permissions on Linux and macOS: who may read, write or execute a file. Permissions are set for the owner, the group and everyone else. You can use letters, as in chmod +x deploy.sh to make a script executable, or numbers, as in chmod 644 config.php. In the numbers, 4 means read, 2 write and 1 execute, added together per group. So 644 means the owner can read and write, and everyone else can only read.
A common mistake is chmod 777 to make an error go away. It lets every user and process on the server change the file, which is a real security risk on a web server. Find out which user actually needs access, usually the web server user, and give that user exactly the permission required.
Use before running or suggesting shell commands with flags, especially destructive or broad ones (-f/--force, -r/-R recursive, -a/--all, -y/--yes, prune, --hard), and when a user asks what a flag means (-v, -q, -n/--dry-run, -h, -o, -p, -t, -u, -w, -x, -c, -i). Explains flags per tool and prefers dry runs and narrow scopes.
Master defensive Bash programming techniques for production-grade scripts. Use when writing robust shell scripts, CI/CD pipelines, or system utilities requiring fault tolerance and safety.
Use this skill before running, or recommending, any Docker command that deletes, wipes, resets, or otherwise irreversibly changes state — even if the user just says to "clean up", "clear the cache", "start fresh", "wipe everything", "nuke it", "reset", "force remove", or "tear down" Docker resources. Covers generic Docker CLI destructive operations not owned by a more specific skill — `docker rm`,