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 the linux boot files?

9 Answers   CSS, Wipro,


What is the difference between clang and llvm?

0 Answers  


What is ulimit command?

0 Answers  


what is a command to display top 10 users who are using Huge Space?

3 Answers   IBM, TNS,


How do you check which file consuming more space in linux?

0 Answers  






What is the command to list ALL (hidden also) files of current directory & it’s subdirectories?

6 Answers  


Why ms dos is used?

0 Answers  


When u comment the ctrl+alt+del trap in the /etc/inittab save the file. Tell the command to save the changes without rebooting the machine?

1 Answers   HCL,


Did you work with linux? What flavors and versions?

5 Answers   HP,


What is $@ in makefile?

0 Answers  


What is the gcc command?

0 Answers  


which command is used to see all the system configuration? like hardware, HDD, memory etc.

14 Answers   ADS, eClinicalWorks, NJN,


Categories