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 does the sh command do?
How do I run a script on mac?
What is the equivalent of a file shortcut that we have a window on a linux system?
Which is best institute for testing tool?
What will happen to my current process when I execute a command using exec?
Write down the syntax of "for " loop
What does sh mean?
How to print pid of the current shell?
How to include comments in your shell scripts?
write a shell script to identify the given string is palindrome or not?
17 Answers CTS, HP, IBM, InfoEst, Wipro,
What is the difference between bash and shell?
Create a bash shell script to sort and then uniq the file from the command line & store it to a new file and output the results to the screen. Name this script "sortAndUniq.sh"