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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the first character of the output in ls l command?

625


How do I delete files from command prompt?

549


Write a command that will display files in the current directory, in a colored, long format.

671


What does this command do,"$more readme.txt“?

681


What is the search command in unix?

594






Is it inbetween or in between?

572


What is updatedb?

576


What does the command '$ls | wc –l > file1' do?

674


How do I use grep to find a file?

575


What is the command to compare two files in unix?

614


How do I find previous commands in unix?

592


What is the unix command to confirm a remote host is alive or not?

573


What is the use of tee command?

563


Which command is used to kill the last background job?

769


What is pipe command in unix?

662