____ option is used with a test for checking if the file exists and has the size greater than zero.

Tiên Hương

New member
____ option is used with a test for checking if the file exists and has the size greater than zero.
A. -f
B. -r
C. -e
D. -s
 
Answer: d
Explanation: test can also be used for performing various file tests like checking whether the file is a regular file, or is it readable, writable or executable. To check whether the file exists and has the size greater than zero, we have to use -s option with test. For example,
Code:
$ test -s filename
 

Tìm kiếm

Back
Top