Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the use of "test" command?

Answers were Sorted based on User's Feedback



What is the use of "test" command?..

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

What is the use of "test" command?..

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

Post New Answer

More Shell Script Interview Questions

What is shell and terminal?

0 Answers  


What is computer cli?

0 Answers  


How can you find out how long the system has been running?

0 Answers  


Explain about debugging?

0 Answers  


how to read systems current date and time

4 Answers  


What is batch file programming?

0 Answers  


How would you compare the strings in a shell script?

0 Answers  


If one dont know how to create a script then how he/she can use the QTP?

1 Answers  


write a non recursive shell script that accepts any number of arguments and prints them in the reverse order

3 Answers  


How u convert string "hi pravin how are you?" to "Hi Pravin How Are You?"

12 Answers   Cap Gemini,


If you have a string "one two three", which shell command would you use to extract the strings?

5 Answers  


What is the difference between a 'thread' and a 'process'?

3 Answers  


Categories