Shell-z-D and so on

Source: Internet
Author: User
Tags sorts
1234567891011121314151617181920212223242526272829303132 [ -a FILE ] IfFILE If yes, it is true.[ -b FILE ] IfFILE If the object exists and is a special file, it is true.[ -c FILE ] IfFILE If a special file exists and is a word, it is true.[ -d FILE ] IfFILE A directory exists and is true.[ -e FILE ] IfFILE If yes, it is true.[ -f FILE ] IfFILE If a common file exists, it is true.[ -g FILE ] IfFILE If the sgid already exists and has been set, it is true.[ -h FILE ] IfFILE If a symbolic connection exists, it is true.[ -k FILE ] IfFILE If it already exists and has been set to stick bits, it is true.[ -p FILE ] IfFILE An existing name pipeline (f If O) is true.[ -r FILE ] IfFILE If it is readable, it is true.[ -s FILE ] IfFILE Exist and not small0True.[-T fd] It is true if the file descriptor FD is opened and points to a terminal.[ -u FILE ] IfFILE SUID (set User ID) is true.[ -w FILE ] IfFILE IfFILE If it exists and is writable, it is true.[ -x FILE ] IfFILE If it exists and is executable, it is true.[ -O FILE ] IfFILE Valid user ID.[ -G FILE ] IfFILE A valid user group exists.[ -L FILE ] IfFILE If a symbolic connection exists, it is true.[ -N FILE ] IfFILE Existand has been modIf IED since it was last read is true.[ -S FILE ] IfFILE A socket exists and is true.[File1-nt file2] If file1 has been changed more recently than file2,or If file1 existsand FILE2 does notTrue.[File1-ot file2] True if file1 is older than file2, or if file2 exists and file1 does not exist.[File1-Ef file2] True if file1 and file2 point to the same device and node number.[-O optionname] true if the shell option "optionname" is enabled.[ -z STRING ]  “STRING"Is true if the length is zero.[ -n STRING or STRING ]  “STRINGThe non-zero is true.[String1 = string2] If2Strings are the same. "=" May be used insteadof “==” for Strict POSIX compliance is true.[String1! = String2] true if the strings are not equal.[String1 <string2] If "string1" sorts before "string2" lexicographicallyin The current locale is true.[String1> string2] If "string1" sorts after "string2" lexicographicallyin The current locale is true.[ ARG1 OP ARG2 ] “OP” is one of -eq, -ne, -lt, -le, -gt or -ge. These arithmetic binary

Shell-z-D and so on

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.