Login or Register to Ask a Question and Join Our Community

Help me

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Help me
# 1  
Old 09-12-2013
Help me

i have 2 question.

1)In the following code snippet

Cmd> sh sample.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 ]
echo "1234"

What will be printed on the screen?
A) chmod
B) 778
D) 456
# 2  
Old 09-12-2013
Thread closed since it looks very homework...
Unless you justify via pm that this is not you will have to repost in appropriate forum which has special rules:
Homework & Coursework Questions - The UNIX and Linux Forums
Please follow them when posting!
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question

Featured Tech Videos