LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   some shell questions (https://www.linuxquestions.org/questions/linux-software-2/some-shell-questions-585960/)

cnhawk386 09-19-2007 09:31 PM

some shell questions
 
1.[ -f /var/lock/subsys/postfix ] && restart || :
what does : mean
2. . /etc/rc.d/init.d/functions
what does this shell mean
3. echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
what does $ in echo $"..." mean
4.what does difference between exit 0 and exit 1
5. what does $*  $#  $? mean in shell

druuna 09-20-2007 12:33 AM

Hi,

This has 'homework' written all over it and we at LQ do not do your homework.......

(almost) All the answers can be found in bash' man page.

Hope this helps.

cnhawk386 09-20-2007 02:18 AM

other answer?
thank you

colucix 09-20-2007 02:56 AM

Quote:

Originally Posted by cnhawk386 (Post 2897575)
other answer?

I'm afraid you will get always the same answer. Try to figure out your homework alone or ask to teacher or colleagues. That's it!

reddazz 09-20-2007 03:40 AM

Thread closed because this appears to be homework.


All times are GMT -5. The time now is 04:53 AM.