Bash Scripting - Conditionals
Which of the following is the correct syntax to check if a file is writable in bash?
-w checks if the file is writable, -x checks executable permission, -r checks readable, and -d checks if it's a directory.[ -w filename ] with spaces and brackets.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions