File Operators Shell Scripting
File Operators Shell Scripting
1. Operator :- -b file
Description :- Checks if file is a block special file; if yes, then the condition
becomes true.
2. Operator :- -c file
4. Operator :- -f file
Description :- Checks if file has its set group ID (SGID) bit set; if yes, then
the condition becomes true.
6. Operator :- -k file
Description :- Checks if file has its sticky bit set; if yes, then the condition
becomes true.
8. Operator :- -w file
9. Operator :- -r file
11. Whileloop:-