mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-10-29 17:44:52 +08:00
* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
9 lines
740 B
Markdown
9 lines
740 B
Markdown
# File Test Operators
|
|
|
|
File test operators in Bash are used to check the type and attributes of files. These operators allow you to determine if a file exists, if it's a regular file or a directory, if it's readable, writable, or executable, and other file-related properties. The result of a file test is a boolean value (true or false), which can be used in conditional statements to control the flow of a script.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@article@File test operators](https://tldp.org/LDP/abs/html/fto.html)
|
|
- [@article@Bash Tests](https://docs.rockylinux.org/10/books/learning_bash/05-tests/)
|
|
- [@video@Shell Scripting Tutorial for Beginners 6 - File test operators](https://www.youtube.com/watch?v=uVi5o38NGi0) |