Check if file exists and is readable by the current process

Returns an exit code of 0 if the file is readable by the current process.

Authored by: Sidratul Muntaha
file

Command
Copy
[[ -r file ]]
Tags