First page Back Continue Last page Overview

 

File Tests

 
  • File tests:

    • -f tests to see if file exists and is a regular file
    • -d tests to see if a file exists and is a directory
    • -x tests to see if a file exists and is executable
  • if [ -f ~/lib/functions ];then

  • source ~/lib/functions

  • fi