Whether the Linux test file exists a command set __linux

Source: Internet
Author: User
Tags bit set
       -B file file exists and is block special-c file file exists and is character sp
              ecial-d file file exists and is a directory-e file file Exists-f file File exists and is a regular file-g file file exists and is Set-group-id-g FIL E file exists and is owned by the effective group Id-h file file exists and is a Symbo LIC link (same as-l)-K file file exists and has its sticky bit set-l FILE FIL E exists and is a symbolic link (same as-h)-O file exists and is owned by the effective user I D-p file file exists and is a named Pipe-r file file exists and read Permissio N is granted-s file file exists and has a size greater than Zero-s file file E
  Xists and is a socket     -T FD file descriptor FD is opened on a terminal-u file file exists and it Set-user-id bit is  Set-w file file exists and Write permission is granted-x file file exists and Execute (or search) permission is granted
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.