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 add content of one file into another file at the beginning
What does grep v grep do?
What does pipe () return?
What happens when we execute a unix command?
what is the use of wild cards?
distinguish between physical addresses and logical address?
How do you change file permissions?
what is exact definition of operating system?
what is the command to find out the difference between files and folders?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
How do you know about running processes of a particular user?
What is the search command in unix?