What is the use of "test" command?
Answers were Sorted based on User's Feedback
Answer / satchi
"Test" command checks file and directory types and checks
value.
EX: create a empty file test (touch test)
if test -f test
then
echo "File is nonempty"
else
echo "file is empty"
fi
There are different options like -d -b -e.You can explore
all.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / manhar chavan
Simply test command is compare two values. it check whether
it is right or wrong.
| Is This Answer Correct ? | 0 Yes | 0 No |
madhar chod unix ke 10 commands dhang se likh nahi sakta hai
What is shell terminal?
What is the use of "test" command?
What is the syntax of "expr" command?
How do I run a .sh file?
How do I open the shell in cmd?
What is awk in shell scripting?
What are the advantages of using shell scripts?
How will you print the login names of all users on a system?
What is batch file programming?
What will happen to my current process when I execute a command using exec?
When should shell programming/scripting not be used?