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 do chown command do?

0 Answers  


Explain the read, write, and execute permissions on a UNIX directory.

5 Answers  


What happens when we execute a unix command?

0 Answers  


how to find the 51th record of a file containing 100 records in unix.

12 Answers   IBM,


How do you copy a directory with many files and folders into another directory?

2 Answers  


Assume the following files are in the working directory prompt> ls -l tasks -rw-r--r-- 1 alex student 1423 Feb 21 14:01 tasks What command can Alex use to give everyone permission to write to the file? What will the ls -l command display if he does so?

10 Answers   Infosys,


What is the difference between a hard link and a soft link in Unix?

1 Answers  


what is the difference between Touch & cat command

21 Answers   QA,


What is the nmap command?

0 Answers  


What is used to type command?

0 Answers  


in UNIX ,What is the command to view contents of a large error log file?

7 Answers  


Enlist some filename manipulation commands in unix.

0 Answers  


Categories