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 are the unix commands?

0 Answers  


how to remotely move a file ??? that mean how to move a file one machine to another machine ???

10 Answers   Altair,


How to create hardlinks and softlinks on files?

2 Answers  


what is tar command and what are the different types of tar commands?

5 Answers  


What is the procedure of "at" and crontab" commands?

4 Answers  






what is telnet?

6 Answers  


What is ctrl d?

0 Answers  


What is the difference between grep and grep?

0 Answers  


What is the behavioural difference between cmp and diff commands?

0 Answers  


distinguish between paging and swapping?

3 Answers   Infosys,


What is the functions of zambie process?

3 Answers  


How does the user view the contents of a text file in UNIX?

9 Answers   IBM,


Categories