1

like

[[ -s file ]]
[[ -z string ]]

preferably on the web.

I looked on the ldp site but couldn't find them

The man page (man [) is helpful but I am looking for a more compact list.

3 Answers3

2

You didn't specify the shell you're using, but e.g.

man bash 
/CONDITIONAL EXPRESSIONS
tink
  • 6,765
  • Or for a web based version of the man page - http://www.gnu.org/software/bash/manual/bashref.html#Bash-Conditional-Expressions – Lawrence Jul 31 '14 at 01:19
0

You can get a list of the bash builtin file and string test operators by typing help test at the shell prompt.

steeldriver
  • 81,074
0
man test | sed -n '/^  *-/,/^$/{/./p}'

tends to compact it a little bit

mikeserv
  • 58,310