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 files in Unix?
How i'll delete a particular line from the file? Please give answer as soon as possible. Thanks in advance.
What are filter commands in unix?
How can you see the command line history?
How do you grep a case insensitive?
describe the escaping sequence characteres in unix
Where LOG fiels resides in AIX and pls tel me how to remove the log file
How do I search for text in vi?
what is the command to list all files in a directory, including the hidden files in UNIX ?
in UNIX ,What is the command to view contents of a large error log file?
what is the difference between "cron" command and "at" command?
1-how will you display a file whose name is starting with '- '? 2-how will you add a patten at end of every line in vi editor?