Parameter Passing and Arguments — Study Resources & PYQs
Parameter passing and arguments in shell scripts
- Estimated study time: 48 minutes
Study resources
- How To Pass and Parse Linux Bash Script Arguments and Parameters (Article) — Explains how to pass command-line arguments to a bash script and access them using positional parameters like $1, $2, and $#.
- Shell Scripting (GitHub repository) (Article) — A collection of shell scripts demonstrating command-line arguments and parameter passing, among other scripting concepts.
- Basics of Shell Programming & Types of Shells (Video) — Introductory tutorial covering what a shell is, types of shells (bash, sh, ksh, csh, zsh), and first shell script.
- Shell Variables & System Variables (Video) — Covers shell variables, system variables (PATH, HOME, USER), parameter passing ($1,$2), and shell keywords.
- Conditionals, Loops & Case Statements (Video) — Playlist covering if/else, while, for, until loops, case statements, and parameter passing in bash scripts.
- Mastering User Management & Permissions (Article) — Exhaustive guide: useradd, usermod, userdel, groupadd, groupmod, passwd -l (lock/disable), and best practices.
- Creating & Managing Groups (Article) — Covers groupadd, gpasswd, usermod -aG, primary vs secondary groups, and group-based permission management.
Taught in these subjects
- Linux Programming — ITO-4505 · Government College of Engineering and Technology, Jammu
- Linux Programming — ITO-4505 · Government College of Engineering and Technology, Jammu
- Linux Shell Programming — ITO-4505 · Government College of Engineering and Technology, Jammu
- Linux Programming — ITO-4505 · Government College of Engineering and Technology, Jammu
- Linux Programming — ITO-4505 · Government College of Engineering and Technology, Jammu