1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| -a FILE 如果文件存在,则为true。 -b FILE 如果文件是块特殊的,则为true。 -c FILE 如果文件是特殊字符,则为true。 -d FILE 如果文件是目录,则为true。 -e FILE 如果文件存在,则为true。 -f FILE 如果文件存在并且是常规文件,则为true。 -g FILE 如果文件是set-group-id,则为true。 -h FILE 如果文件是符号链接,则为true。 -L FILE 如果文件是符号链接,则为true。 -k FILE 如果文件的粘滞位(sticky)设置了,则为true。 -p FILE 如果文件是命名管道,则为true。 -r FILE 如果您可以读取文件,则为true。 -s FILE 如果文件存在且不为空,则为true。 -S FILE 如果文件是套接字,则为true。 -t FD 如果在终端上打开FD,则为True。 -u FILE 如果文件是set-user-id,则为true。 -w FILE 如果文件可写,则为true。 -x FILE 如果您可以执行文件,则为true。 -O FILE 如果文件有效地归您所有,则为true。 -G FILE 如果文件有效地归您的组所有,则为true。 -N FILE 如果文件自上次读取以来已被修改,则为true。 FILE1 -nt FILE2 根据修改日期,如果 file1 比 file2 新,则为true。 FILE1 -ot FILE2 根据修改日期,如果 file1 比 file2 旧,则为true。 FILE1 -ef FILE2 如果 file1 为 file2 的硬链接,则为true。
|