LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 09-19-2007, 09:31 PM   #1
cnhawk386
LQ Newbie
 
Registered: Aug 2007
Posts: 25

Rep: Reputation: 15
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

Last edited by cnhawk386; 09-19-2007 at 10:18 PM.
 
Old 09-20-2007, 12:33 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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.
 
Old 09-20-2007, 02:18 AM   #3
cnhawk386
LQ Newbie
 
Registered: Aug 2007
Posts: 25

Original Poster
Rep: Reputation: 15
other answer?
thank you
 
Old 09-20-2007, 02:56 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by cnhawk386 View Post
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!
 
Old 09-20-2007, 03:40 AM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Thread closed because this appears to be homework.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Scripting Questions blaoulis Programming 5 07-12-2006 07:21 PM
two shell script questions tutwabee Linux - General 4 08-10-2004 06:03 PM
Shell Script Questions Col Panic Linux - General 13 10-12-2003 12:51 PM
Shell Questions BajaNick Linux - General 7 08-06-2003 04:15 AM
Misc shell questions Cyth Linux - Software 1 03-13-2003 09:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration