What is the function of test command explain with an example?

Danh Trịnh

New member
What is the function of test command explain with an example?
Answer
The test command
evaluates the Expression parameter, and if the expression value is True, returns a zero (True) exit value. Otherwise, the test command returns a nonzero (False) exit value. The test command also returns a nonzero exit value if there are no parameters.
 

Tìm kiếm

Back
Top