what is the use of "test" command in unix?

Answers were Sorted based on User's Feedback



what is the use of "test" command in unix?..

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

what is the use of "test" command in unix?..

Answer / sumesh

test - check file types and compare values

Is This Answer Correct ?    27 Yes 6 No

what is the use of "test" command in unix?..

Answer / sourisengupta

test - check file types and compare values

Is This Answer Correct ?    10 Yes 1 No

what is the use of "test" command in unix?..

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

Post New Answer

More Unix Commands Interview Questions

What is the command to compare two files in unix?

0 Answers  


Can a process kill itself in UNIX/or in its various versions?

2 Answers  


How to check the flavor of UNIX?

8 Answers   HCL, Syntel,


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

0 Answers  


What does the md command do?

0 Answers  






What is the difference between AWK and SED commands? Plz give example and explain...

3 Answers   RBS,


What is rmdir command?

0 Answers  


what is the command to get help on a UNIX terminal?

5 Answers  


What is the search command in unix?

0 Answers  


What are bash commands?

0 Answers  


What does mkdir up2date; touch outdated up2date do?

2 Answers  


what is the use of wild cards?

2 Answers  


Categories