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

How we can set the password length in linux?

2 Answers   Wipro,


What can you tell about the tar command?

0 Answers  


Why ls -F dev/log file output indicate as = sign at end of the file name?

5 Answers   HCL, IBM,


What is finger command in linux?

0 Answers  


Why we use pwd command in linux?

0 Answers  






How to recover /etc/passwd file and /etc/shadow file?

0 Answers  


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

3 Answers   IBM, TNS,


Write about an internal command.

0 Answers  


You wish to print a file ‘draft’ with 60 lines to a page. What command would you use?

0 Answers  


What does cd do in linux?

0 Answers  


What is the command to calculate the size of a folder?

0 Answers  


What is the bash in linux?

0 Answers  


Categories