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 |
What is a program shell?
What does path stand for?
Dear All, Can anybody tell me how to predefind no. of selected rows from a text file.
What is console line?
how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?
In shell scripting if text is surrounded by single quotes what does it denotes?
What is the syntax of while loop in shell scripting?
How would you compare the strings in a shell script?
There are three departments A,B and C.Write a query to display the names of all the persons( in departments other than A) who are paid higher than the person receiving the lowest salary in DEPT A
What is bash command used for?
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
What is the default ubuntu terminal?