script is like
x=10;
y=20;
[$x-ne$y];
echo $
please give me output.

Answers were Sorted based on User's Feedback



script is like x=10; y=20; [$x-ne$y]; echo $ please give me output...

Answer / srikanth

The Question is like this

Question:
x=10;
y=20;
[ $x -ne $y ]
echo $?

Ans is 0, because the condition x value not equal to y
value. It is true. so... that value is 0. If the conditions
is false then it displays output 1.

Is This Answer Correct ?    14 Yes 0 No

script is like x=10; y=20; [$x-ne$y]; echo $ please give me output...

Answer / sureshreddy

error: $ command not found.

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More Linux Commands Interview Questions

What are vim commands?

0 Answers  


What is echo command in batch file?

0 Answers  


What is gnu in linux?

0 Answers  


How to hide the partition in GRUB booting? (This technique is required when you have more that one Windows system on different partitions of the same disk, let us say the first and second partitions of the first hard drive, to boot from the first partition you must hide the second one)

2 Answers  


How can you check the amount of lines in a file?

0 Answers  






what is emacs editor and feature........???????????????????????????

1 Answers  


my clients are getting services from servers but how to know which client is using which service. is there any files to keep information about these? clients used ftp, nis, samba, apache, squid, nfs and mail services how to know how many users got service from server side with date,time and client system ip ?

3 Answers   Wipro,


What is file and example?

0 Answers  


what is lilo?How it is useful in linux?

3 Answers   HCL, SofTec,


Who am I command in linux?

0 Answers  


How do I check my system performance?

0 Answers  


What command you use for cpio to create a backup called backup.cpio of all the users’ home dirs?

2 Answers  


Categories