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 |
What do chown command do?
Explain the read, write, and execute permissions on a UNIX directory.
What happens when we execute a unix command?
how to find the 51th record of a file containing 100 records in unix.
How do you copy a directory with many files and folders into another directory?
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 a hard link and a soft link in Unix?
what is the difference between Touch & cat command
What is the nmap command?
What is used to type command?
in UNIX ,What is the command to view contents of a large error log file?
Enlist some filename manipulation commands in unix.