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 can i know my Filesystem and its current usage in my prod UNIX system?
Who command in unix?
Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be highly appreciated...
distinguish between user mode and kernel mode?
What is grep and sed command?
What is FIND, GREP and SED ? Could you please give me the difference between all the three? Where we use this commnands?
Write a command to find all of the files which have been accessed within the last 30 days.
5 Answers Google, IBM, Satyam,
What is updatedb?
How can we "forked" process in UNIX? How then recognize in any of the branches we?
what does a process mean?
Which command will print your home directory on screen?
How do you grep recursively?