| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
When using wildcards such as * or ? in a Bash command, it's important to properly quote or escape them. Otherwise, the shell may interpret the wildcards as file globbing patterns and expand them into a list of file names before executing the command. This can lead to unexpected behavior if the command is not designed to handle multiple file names as arguments. To prevent the shell from expanding the wildcards, you can use quotes (" or ') or escape characters () to surround the wildcard pattern.
When using wildcards with root privileges, such as with the rm command, it's important to be very careful. A single mistake with a wildcard can lead to the deletion of multiple files or even the entire file system. To avoid accidentally deleting important files, it's a good idea to use the -i option with the rm command to prompt for confirmation before deleting each file. Additionally, you can use the -- option to signify the end of options and prevent any arguments that follow from being interpreted as options. This can help prevent accidental deletion of files that have names starting with a hyphen (-).
Bash scripts related to every session of this tutorial will be stored in isolated branches named after their session name.
You can access the main code and the challenge answer key related to every session at their own branch.
| Back | FazBrowse Home | New Git URL |