*-X File = True If the file exists and is executable. *-W File = True If the file exists and is writable. *-U File = True If the file exists and its Set-user-id bit is set. The file descriptor is opened on a terminal *-t FD = True If the file descriptor is opened on a terminal. *-S File = True If the file exists and is a socket. *-S File = True If the file exists and its size is greater than zero. *-R file = True If the file exists and is readable. *-P file = True If the file exists and is a named pipe. *-L FILE = True If the file exists and is a symbolic link. If the sticky "sticky" bits of the file are set. *-K File = True if the files ' sticky ' bit is set. If the file exists and a group ID bit is set. *-G File = True If the file exists and the Set-group-id bit is set. *-F file = True If the file exists and is a regular files if it exists and is a normal file *-D file = True If the file exists and is directory. If it exists and is a character special file *-c File = True If the file exists and is character special file. If the file exists and is a block special file. *-B FILE = True If the file exists and is block special file. The following is a list of judgment conditions that correspond to the type of file or device type. For example, a device node is a/DEV/TTYUSB2 character device.Įcho "Wait for $TTY 2 ready, and check again after 1s" Using a shell to determine whether a device node exists, such as inserting a 4G Modem Sierra module into a Linux system, generates a series of TTY devices, typically with a command to send and receive at.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |