Visit Our UNIX and Linux User 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
echo $0

What will $0 return?
A) 0
B) 1
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!

Previous Thread | Next Thread
Test Your Knowledge in Computers #230
Difficulty: Easy
The Advanced Research Projects Agency Network (ARPANET) was an early packet-switching network and the first network to implement the TCP/IP protocol suite.
True or False?

Featured Tech Videos