You can easily test if a file exists under Linux operating system using test command. Display a message if file /etc/passwd exists: test -f ...
nixcraft.com