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 is "ls* " is run options are 1) x 2).x 3) hidden 4) no disply tell exact answer.

6 Answers   Google,


What is ls command and what it does?

0 Answers  


What is the command to see on which port which service is running?

0 Answers  


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

2 Answers   Amdocs, Google,


What are the basic command in linux?

0 Answers  






What does chmod 755 do?

0 Answers  


What is an os command?

0 Answers  


what is Bourne shell.

1 Answers   Google, HCL, Infosys,


you wish to create a link to the /data directory in bob's home directory so you issue the command ln /data /home/bob/datalink but the command fails. What options hould you use in this command line to be successful.

0 Answers  


what is the diff b/w ext2 and ext3?

5 Answers  


I want to kill zombie process, but with using kill 9 i cannot kill that process? can u tell other commands?

3 Answers   CTS,


What is the use of ls command?

0 Answers  


Categories