In Linux and other Unix-like operating systems, checking if a file exists is a common task that can be accomplished in various ways. One common approach is to use the `-f` flag with the `test` command. For example, the following command would check to see if a file named `example.txt` exists in the current directory:
test -f example.txt