- Bash Special Variables ($0, $?, $#, $@, $$, $*, $-) - TecAdmin
In this article, we’ll provide an in-depth guide to all bash special variables, including examples of their usage and common pitfalls to avoid $0 – The name of the script being executed $1-$9 – The first nine command-line arguments $# – The number of command-line arguments $* – All command-line arguments as a single string
- bash - Shell equality operators (=, ==, -eq) - Stack Overflow
== is a bash-specific alias for = and it performs a string (lexical) comparison instead of a numeric comparison eq being a numeric comparison of course Finally, I usually prefer to use the form if [ "$a" == "$b" ]
- Bash Reference Manual
Bash is the shell, or command language interpreter, for the GNU operating system The name is an acronym for the ‘ Bourne-Again SHell ’, a pun on Stephen Bourne, the author of the direct ancestor of the current Unix shell sh, which appeared in the Seventh Edition Bell Labs Research version of Unix
- Bash Conditional Expressions (Bash Reference Manual)
Conditional expressions are used by the [[ compound command (see Conditional Constructs) and the test and [ builtin commands (see Bourne Shell Builtins) The test and [ commands determine their behavior based on the number of arguments; see the descriptions of those commands for any other command-specific actions
- Test Operators in Bash [Cheat Sheet] - Linux Handbook
Test operators in bash scripts help you evaluate the conditions such as you may want to execute a specific block of code based on whether the condition is true or not
- Bash Tutorial - W3Schools
Bash is used to write scripts and run commands on Linux systems It helps automate tasks, manage system operations, and boost productivity A shell is a text-based interface that lets you talk to your computer There are different types of shells, but Bash (Bourne Again SHell) is the most popular because it's powerful and easy to use
- Basic Operators in Shell Scripting - GeeksforGeeks
Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school education, upskilling, commerce, software tools, competitive exams, and more
- Basic Bash (CLI) Cheat Sheet - Linux Stans
From navigating the file system to manipulating files, managing processes, and working with permissions, this cheat sheet covers a wide range of essential Bash commands Each command is presented in a clear and concise format, enclosed in code tags for easy identification
|