Linux Shell if command parameter description _linux Shell
Source: Internet
Author: User
*-B Returns True when file exists and is a block file
*-C Returns True when file exists and is a character file
*-D returns True when pathname exists and is a directory
*-E Returns True when pathname specified file or directory exists
*-F returns True when file exists and is a regular file
*-G returns True when the file or directory specified by pathname exists and the Sgid bit is set
*-H returns True when file exists and is a symbolic link file, which is not valid on some old systems
*-K returns True when a file or directory specified by pathname exists and a "sticky" bit is set
*-P Returns True when file exists and is a command pipe
*-R when the file or directory specified by pathname is present and returned as true when it is readable
*-S returns True when file size is greater than 0 o'clock
*-U returns True when the file or directory specified by pathname exists and the SUID bit is set
*-W returns True when the file or directory specified by pathname exists and is executable. A directory that is accessed for its content is necessarily executable.
*-O Returns True if the file or directory specified by pathname exists and the user specified by the active user ID of the current process is owned.
The UNIX Shell compares character writing:
*-eq equals
*-ne Not equal to
*-GT is greater than
*-lt less than
*-le less than equal
*-ge is greater than or equal to
*-Z empty string
* = Two characters equal
*!= two characters range
*-N Not empty string
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