what is the use of "test" command in unix?
Answers were Sorted based on User's Feedback
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 |
Answer / sourisengupta
test - check file types and compare values
| Is This Answer Correct ? | 10 Yes | 1 No |
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 |
How do you find which version and name of unix you are using at the command prompt?
What does the command '$ls | wc –l > file1' do?
How to redirect standard error to a file?
What is FIND, GREP and SED ? Could you please give me the difference between all the three? Where we use this commnands?
What is a command and examples?
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?
What is the difference between cat command and more command?
what do you understand by 'unix is a portable os'?
Why is grep called grep?
how to remotely move a file ??? that mean how to move a file one machine to another machine ???
Which command is used to create a directory?
How do you list the files in an UNIX directory while also showing hidden files?