How do you test for file properties in shell scripts?

Submitted by: Administrator
-s filename tells you if the file is not empty, -f filename tells you whether the argument is a file, and not a directory, -d filename tests if the argument is a directory, and not a file, -w filename tests for writeability, -r filename tests for readability, -x filename tests for executability
Submitted by: Administrator

Read Online Shell Scripting Job Interview Questions And Answers