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 grep short for?

0 Answers  


Using unix command how to display no of records in oracle?

0 Answers  


how to unzip the contents of the gzip file

1 Answers   Epsilon,


What do chgrp command do?

0 Answers  


distinguish between paging and swapping?

1 Answers   Infosys,






how will you login one server's shell prompt to an another server?

5 Answers   Cosmic Infotech, Perot Systems,


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

2 Answers  


what is difference between unix and linux?

6 Answers   IBM, Shell, Wipro,


Explain command to display different lines that are found when compare two files?

0 Answers  


What is used to type command?

0 Answers  


What is in grep command?

0 Answers  


what are the different operating systems available?

3 Answers  


Categories