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 does a process mean?

7 Answers   Infosys,


What UNIX command will control the default file permissions when files are created?

4 Answers  


in UNIX,what is the command to remove directory with files?

10 Answers  


What is the use of finger command?

0 Answers  


What are filter commands in unix?

0 Answers  






How do I delete files from command prompt?

0 Answers  


why unix operating system provides more security than other operating systems?

4 Answers  


What is unix command line?

0 Answers  


A file has 1000 lines and i want to display only 1st line how to do it? pls ..tel me

7 Answers   CTS,


What is awk used for?

0 Answers  


Explain ‘system calls’ with respect to unix commands?

0 Answers  


Which command will you use to change the permissions on file?

7 Answers  


Categories