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 |
How to add some content in any file at some desired location without using VI or some other editor in UNIX
How to make userdefined variables to available for all other shells?
Is shell scripting difficult?
write a non recursive shell script that accepts any number of arguments and prints them in the reverse order
Hi, i want to zip the files that generates automatically every few minutes (files generated are in .arc extension)....any body write a script for this... thanks in advance
Write a shell script to check whether a number is Armstrong number or not?
How do you find out What is your shell?
What is Path variable?What is its use?
c program which accept one argument as a directory name and prints all the file name along with its inode number and total count of the file in directory
What are different types of shell?
Why should we use shell scripts?
How will you copy a file from one machine to other?