Judgment in the shell

Source: Internet
Author: User

-e file If file exists, true-d file if file is a directory, true-f file If file is regular, true-l file if file is a symbolic link, true-r file if file is readable, true-W file True-X If file is writable, or true-s file if files are executable or true-h if the file is a soft link, true-z files if the file or directory does not exist, it is true in front of the add! It means reverse, such as! -H filefile1-nt file2 True if the file1 is newer than file2. File1-ot File2 If File1 is older than file2, it is true. -eq equals equal to ==-ne not equal to!=-gt greater than equal to >-ge greater than equals to >=-lt less equal to <-le less than equals to <=


Judgment in the shell

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.