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 ‘ps’ command for?
How many bits use for MAC address?
What is the output of : $ ps-e $ ps-a commands
which script will invoke first ,when /etc/init.d starts
What is awk good for?
How do I search for text in vi?
In UNIX, what is the command to edit contents of the file?
What does grep v do?
How to display a file name which has zero bytes in size.
What is unix command?
How do I run a bash script?
How to know a process is a zombie or orphan process?