09-12-2013
1,
0
Join Date: Sep 2013
Last Activity: 13 September 2013, 4:32 AM EDT
Posts: 1
Thanks Given: 0
Thanked 0 Times in 0 Posts
Help me
hi,
i have 2 question.
1)In the following code snippet
Cmd> sh sample.sh
##sample.sh
##--------------------
#!bin/sh
echo $0
What will $0 return?
A) 0
B) 1
C) sample.sh
D) sample
E) All of the above
2)In the following code snippet
chmod 778 abcd.txt
if [ $? -ne 0 ]
then
echo "1234"
else
echo"456"
fi
What will be printed on the screen?
A) chmod
B) 778
C)1234
D) 456