what is the use of "test" command in unix?
Answers were Sorted based on User's Feedback
Answer / samrat biswal
Test is a condition evaluation command.The test command
evaluates the expression if the value is True,returns a
zero exit status; otherwise,a nonzero exit status is
returned.test also returns a nonzero exit status if there
are no arguments.
Is This Answer Correct ? | 27 Yes | 2 No |
Answer / sourisengupta
test - check file types and compare values
Is This Answer Correct ? | 10 Yes | 1 No |
Answer / manikantan t s
test is very useful on condition checking.
following are the most used options
-r,-w,-x,-f,-d,-eq,-gt,-ge,-lt,-le,-ne,=,!=,-z
Is This Answer Correct ? | 11 Yes | 4 No |
What is the command to compare two files in unix?
Can a process kill itself in UNIX/or in its various versions?
How to check the flavor of UNIX?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
What does the md command do?
What is the difference between AWK and SED commands? Plz give example and explain...
What is rmdir command?
what is the command to get help on a UNIX terminal?
What is the search command in unix?
What are bash commands?
What does mkdir up2date; touch outdated up2date do?
what is the use of wild cards?