File
  • -b, Checks if file is a block special file
  • -c, Checks if file is a character special file
  • -d, Checks if file is a directory
  • -f, Checks if file is an ordinary file as opposed to a directory or special file
  • -g, Checks if file has its set group ID (SGID) bit set
  • -k, Checks if file has its sticky bit set
  • -p, Checks if file is a named pipe
  • -t, Checks if file descriptor is open and associated with a terminal
  • -u, Checks if file has its Set User ID (SUID) bit set
  • -r, Checks if file is readable
  • -w, Checks if file is writable
  • -x, Checks if file is executable
  • -s, Checks if file has size greater than 0
  • -e, Checks if file exists
  • Reference