Meaning of the shell status Test expression

Source: Internet
Author: User
Linuxshell status Test expression meaning file Test-d Directory-s file length is greater than 0, non-empty-f regular file-w writable-L symbol connection-u file suid bit settings-r readable -x executable-nt test file1 compare to linux shell status Test expression meaning file Test-d Directory-s file length greater than 0, non-empty-f regular file-w writable-L symbol the connection-u file has s u I d bit settings-r readable-x executable-nt test file1 is updated than file2. The modification date will be used for this comparison with the next comparison. -Ot test whether file1 is older than file2. -Ef tests whether file1 is a hard link to file2. Numerical test-the eq value is equal. -The ne values are not equal. -The first number of gt is greater than the second number. -Lt: The first number is smaller than the second number. -The first number of le is less than or equal to the second number. -The first number of ge is greater than or equal to the second number.
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.