script is like
x=10;
y=20;
[$x-ne$y];
echo $
please give me output.
Answers were Sorted based on User's Feedback
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 |
what is a command to display top 10 users who are using Huge Space?
What is file and example?
Which command will show you free/used memory? Does free memory exist on linux?
What does chmod 666 do?
How would you monitor real-time system performance in Linux?
I have my default runlevel is init5 now i have configured to init 3,now i wanna run my system in init3 process without reboot the system .How will you do for this scenario?
What does cd – command do?
what is the difference between service and process?
What are the basic dos commands?
How do I check my cpu cores?
What is a good processor speed?
How to shuffle the GRUB booting from one Disk to other?