chore: sync content to repo (#9404)

Co-authored-by: kamranahmedse <4921183+kamranahmedse@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2025-11-25 09:39:38 +01:00
committed by GitHub
parent 4b01c4449c
commit ddd578050a
14 changed files with 22 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
# Square Bracket Wildcards in Shell/Bash
Square brackets `[]` in shell wildcards define a character class, matching any single character *within* the brackets. This allows you to specify a range or set of characters to match in a filename or string. For example, `[abc]` will match either 'a', 'b', or 'c'. You can also use ranges like `[a-z]` to match any lowercase letter or `[0-9]` to match any digit. A caret `^` inside the brackets negates the character class, matching any character *not* listed (e.g., `[^0-9]` matches anything that isn't a digit).
Square brackets `[]` in shell wildcards define a character class, matching any single character _within_ the brackets. This allows you to specify a range or set of characters to match in a filename or string. For example, `[abc]` will match either 'a', 'b', or 'c'. You can also use ranges like `[a-z]` to match any lowercase letter or `[0-9]` to match any digit. A caret `^` inside the brackets negates the character class, matching any character _not_ listed (e.g., `[^0-9]` matches anything that isn't a digit).
Visit the following resources to learn more:

View File

@@ -1,6 +1,6 @@
# Asterisk Wildcard
The asterisk (*) is a wildcard character that represents zero or more characters. It's used in commands and file paths to match multiple files or directories based on a pattern. For example, `*.txt` will match all files ending with ".txt", and `data*` will match files or directories starting with "data".
The asterisk (\*) is a wildcard character that represents zero or more characters. It's used in commands and file paths to match multiple files or directories based on a pattern. For example, `*.txt` will match all files ending with ".txt", and `data*` will match files or directories starting with "data".
Visit the following resources to learn more:

View File

@@ -1,6 +1,6 @@
# Curly Braces Wildcards
Curly braces `{}` are used for multiple matches. Each string can be an exact name, or a wildcard. It will find anything that matches any of the given strings using an or relationship (one OR the other). For example, `touch file{1,2,3}.txt` will create three files: `file1.txt`, `file2.txt`, and `file3.txt`.
Curly braces `{}` are used for multiple matches. Each string can be an exact name, or a wildcard. It will find anything that matches any of the given strings using an or relationship (one OR the other). For example, `touch file{1,2,3}.txt` will create three files: `file1.txt`, `file2.txt`, and `file3.txt`.
Visit the following resources to learn more:

View File

@@ -0,0 +1,8 @@
# Bash Debug
The Bash Debug extension for VS Code, powered by `bashdb`, allows you to debug Bash scripts directly within the VS Code editor. It provides features like breakpoints, stepping through code, inspecting variables, and evaluating expressions, making it easier to identify and fix errors in your Bash scripts. This helps streamline the debugging process, offering a more visual and interactive experience compared to traditional methods like using `set -x` or `echo` statements.
Visit the following resources to learn more:
- [@official@vscode-bash-debug](https://github.com/rogalmic/vscode-bash-debug)
- [@official@Bash Debug](https://marketplace.visualstudio.com/items?itemName=rogalmic.bash-debug)

View File

@@ -4,7 +4,7 @@ A Bash script is essentially a plain text file containing a series of commands t
Visit the following resources to learn more:
- [@course@Bash Scripting](https://linuxhandbook.com/courses/bash/)
- [@article@Bash Script](https://www.w3schools.com/bash/bash_script.php)
- [@article@How to Write a Bash Script: A Simple Bash Scripting Tutorial | DataCamp](https://www.datacamp.com/tutorial/how-to-write-bash-script-tutorial)
- [@video@Bash Scripting Tutorial for Beginners](https://www.youtube.com/watch?v=tK9Oc6AEnR4)
- [@course@Bash Scripting](https://linuxhandbook.com/courses/bash/)
- [@video@Bash Scripting Tutorial for Beginners](https://www.youtube.com/watch?v=tK9Oc6AEnR4)

View File

@@ -4,7 +4,7 @@ Bash, short for Bourne Again Shell, is a command-line interpreter and a shell sc
Visit the following resources to learn more:
- [@article@Bash - Wikipefia](https://en.wikipedia.org/wiki/Bash_(Unix_shell)#:~:text=Bash%20(short%20for%20%22Bourne%20Again,Chet%20Ramey)
- [@article@https://en.wikipedia.org/wiki/Bash_(Unix_shell)#:~:text=Bash (short for "Bourne Again,Chet Ramey)](https://en.wikipedia.org/wiki/Bash_(Unix_shell)#:~:text=Bash%20(short%20for%20%22Bourne%20Again,Chet%20Ramey))
- [@article@Bash Tutorial](https://www.w3schools.com/bash/)
- [@video@Bash Scripting Full Course 3 Hours](https://www.youtube.com/watch?v=e7BufAVwDiM)
- [@video@Bash Scripting Tutorial for Beginners](https://www.youtube.com/watch?v=tK9Oc6AEnR4)

View File

@@ -5,8 +5,8 @@ curl is a command-line tool used to transfer data with URLs. It supports various
Visit the following resources to learn more:
- [@official@curl](https://curl.se/)
- [@opensource@curl](https://github.com/curl/curl)
- [@official@The Art Of Scripting HTTP Requests Using curl](https://curl.se/docs/httpscripting.html)
- [@opensource@curl](https://github.com/curl/curl)
- [@article@How to start using Curl and why: a hands-on introduction](https://medium.com/free-code-camp/how-to-start-using-curl-and-why-a-hands-on-introduction-ea1c913caaaa)
- [@video@Supercharge Your Workflow with cURL | Understanding The cURL Command-Line Tool](https://www.youtube.com/watch?v=-nnJ82uc2ic)
- [@video@You NEED to know how to use CURL!](https://www.youtube.com/watch?v=q2sqkvXzsw8)

View File

@@ -1,6 +1,6 @@
# Repeat Commands
In the shell, you can easily access and reuse previously executed commands. The most common way to do this is using the up and down arrow keys to navigate through your command history. Alternatively, you can use the `history` command to view a numbered list of past commands, and then execute a specific command by typing `!n`, where `n` is the command's number in the history list. You can also use `!!` to repeat the last command, or `!string` to execute the most recent command that starts with "string".
In the shell, you can easily access and reuse previously executed commands. The most common way to do this is using the up and down arrow keys to navigate through your command history. Alternatively, you can use the `history` command to view a numbered list of past commands, and then execute a specific command by typing `!n`, where `n` is the command's number in the history list. You can also use `!!` to repeat the last command, or `!string` to execute the most recent command that starts with "string".
Visit the following resources to learn more:

View File

@@ -1,6 +1,6 @@
# Running Shell Scripts with Source
Sourcing a shell script executes the commands within the script in the *current* shell environment, rather than in a subshell. This means that any variables, functions, or aliases defined or modified within the script will directly affect the shell you're currently working in. This is in contrast to simply executing a script, which creates a new process and any changes are isolated to that process.
Sourcing a shell script executes the commands within the script in the _current_ shell environment, rather than in a subshell. This means that any variables, functions, or aliases defined or modified within the script will directly affect the shell you're currently working in. This is in contrast to simply executing a script, which creates a new process and any changes are isolated to that process.
Visit the following resources to learn more:

View File

@@ -7,4 +7,4 @@ Visit the following resources to learn more:
- [@article@Mastering Selective Debugging in Bash/Shell Scripts with set -x and set +x](https://medium.com/@maheshwar.ramkrushna/mastering-selective-debugging-in-bash-shell-scripts-with-set-x-and-set-x-ef6b7e83fb37)
- [@article@Difference between bash -x and set -x](https://how.dev/answers/bash--x-and-set--x)
- [@article@Using set -x and set -e in Shell Scripting: A Guide for Enhanced Debugging and Error Handling](https://www.hackerone.com/blog/using-set-x-and-set-e-shell-scripting-guide-enhanced-debugging-and-error-handling)
- [@video@How to Debug Bash - Using `bash -x` or `set -x` in bash - You Suck at Programming #044](https://www.youtube.com/watch?v=4TAx3Z9OgPs)
- [@video@How to Debug Bash - Using bash -x or set -x in bash - You Suck at Programming #044](https://www.youtube.com/watch?v=4TAx3Z9OgPs)

View File

@@ -1,6 +1,6 @@
# stdin, stdout, and stderr
In computing, standard streams are preconnected input and output communication channels between a computer program and its environment. Specifically, *stdin* (standard input) is the channel through which a program receives input, typically from the keyboard or another program. *stdout* (standard output) is the channel through which a program writes its normal output, usually displayed on the screen. *stderr* (standard error) is the channel through which a program writes error messages and diagnostic information, also typically displayed on the screen, but kept separate from *stdout* to allow for easier handling of errors.
In computing, standard streams are preconnected input and output communication channels between a computer program and its environment. Specifically, _stdin_ (standard input) is the channel through which a program receives input, typically from the keyboard or another program. _stdout_ (standard output) is the channel through which a program writes its normal output, usually displayed on the screen. _stderr_ (standard error) is the channel through which a program writes error messages and diagnostic information, also typically displayed on the screen, but kept separate from _stdout_ to allow for easier handling of errors.
Visit the following resources to learn more:

View File

@@ -6,4 +6,4 @@ Visit the following resources to learn more:
- [@article@Bash trap Command Explained](https://phoenixnap.com/kb/bash-trap-command)
- [@article@The Bash Trap Command](https://www.linuxjournal.com/content/bash-trap-command)
- [@video@Trapping signals with `trap` in Bash! Responding to Unix signals. You Suck at Programming #064](https://www.youtube.com/watch?v=aXovP1sUtoE)
- [@video@Trapping signals with trap in Bash! Responding to Unix signals. You Suck at Programming #064](https://www.youtube.com/watch?v=aXovP1sUtoE)

View File

@@ -4,10 +4,10 @@ Bash, short for Bourne Again Shell, is a command-line interpreter and a shell sc
Visit the following resources to learn more:
- [@book@Bash Guide for Beginners](https://tldp.org/LDP/Bash-Beginners-Guide/Bash-Beginners-Guide.pdf)
- [@official@Bash Docs](https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html)
- [@article@What is Bash?](https://opensource.com/resources/what-bash)
- [@article@What Is Bash Used For?](https://www.codecademy.com/resources/blog/what-is-bash-used-for)
- [@article@Bash Tutorial](https://www.w3schools.com/bash/)
- [@book@Bash Guide for Beginners](https://tldp.org/LDP/Bash-Beginners-Guide/Bash-Beginners-Guide.pdf)
- [@video@Bash Scripting Tutorial for Beginners](https://www.youtube.com/watch?v=tK9Oc6AEnR4)
- [@video@Beginner's Guide to the Bash Terminal](https://www.youtube.com/watch?v=oxuRxtrO2Ag)

View File

@@ -8,4 +8,5 @@ Visit the following resources to learn more:
- [@article@What is scripting?](https://coralogix.com/blog/what-is-scripting/)
- [@article@What's the difference between Programming and Scripting?](https://www.youtube.com/watch?v=7-0iBZxNq74)
- [@article@Bash Scripting Tutorial Linux Shell Script and Command Line for Beginners](https://www.freecodecamp.org/news/bash-scripting-tutorial-linux-shell-script-and-command-line-for-beginners/)
- [@video@Bash Scripting on Linux](https://www.youtube.com/playlist?list=PLT98CRl2KxKGj-VKtApD8-zCqSaN2mD4w)
- [@video@Scripting Languages](https://www.youtube.com/watch?v=yFWKYs_5DBg)