Check if a file exists

Returns an exit code of 0 if the file exists.

Authored by: Sidratul Muntaha
Brought to you by Warp, a free terminal reimagined to work like a modern app.
file

Command
Copy
[[ -e file ]]
Tags