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 |
How to use grep command to list find the records of a file containing 10 different strings?
Can a process kill itself in UNIX/or in its various versions?
what is the difference between relative path and absolute path?
Briefly, how do you install Oracle software on UNIX.
Where LOG fiels resides in AIX and pls tel me how to remove the log file
Will rm -r* removes hidden files?
What will the following command do?
Name the unix command to find how many days the server has been up.
How does shebang work?
A file has 1000 lines and i want to display only 1st line how to do it? pls ..tel me
How do I search for a file in unix command?
What is the command to find hidden files in the current directory?