Article 4YK2Q Documentation for "[ -option foo ]" in bash

Documentation for "[ -option foo ]" in bash

by
L1P0
from LinuxQuestions.org on (#4YK2Q)
Hi guys, I have used:

[ -d directoryname ] && echo "it exists"
[ -f filename ] && echo "it exists"

I only know options "d" and "f". But, I'm sure there are few more because I see scripts using "a". Maybe it stands for "all".
How can I know those other options?

Thanks!latest?d=yIl2AUoC8zA latest?i=tmDGYMQtg6w:BX0-_pnR_4Y:F7zBnMy latest?i=tmDGYMQtg6w:BX0-_pnR_4Y:V_sGLiP latest?d=qj6IDK7rITs latest?i=tmDGYMQtg6w:BX0-_pnR_4Y:gIN9vFwtmDGYMQtg6w
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments