coreutils: File type tests

1 
1 16.3.1 File type tests
1 ----------------------
1 
1 These options test for particular types of files.  (Everything’s a file,
1 but not all files are the same!)
1 
1 ‘-b FILE’
1      True if FILE exists and is a block special device.
1 
1 ‘-c FILE’
1      True if FILE exists and is a character special device.
1 
1 ‘-d FILE’
1      True if FILE exists and is a directory.
1 
1 ‘-f FILE’
1      True if FILE exists and is a regular file.
1 
1 ‘-h FILE’
1 ‘-L FILE’
1      True if FILE exists and is a symbolic link.  Unlike all other
1      file-related tests, this test does not dereference FILE if it is a
1      symbolic link.
1 
1 ‘-p FILE’
1      True if FILE exists and is a named pipe.
1 
1 ‘-S FILE’
1      True if FILE exists and is a socket.
1 
1 ‘-t FD’
1      True if FD is a file descriptor that is associated with a terminal.
1