Test if the specified file or directory [e]xists

[

  • Check file types and compare values.
    Returns 0 if the condition evaluates to true, 1 if it evaluates to false.
    More information: <https://www.gnu.org/software/bash/manual/bash.html#index-test>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

[ -e {{path/to/file_or_directory}} ]

click the source code to copy install [ on any operating system with command-not-found.com