LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-30-2005, 07:17 PM   #1
malc
LQ Newbie
 
Registered: Nov 2005
Posts: 3

Rep: Reputation: 0
Hi, one quesiton!


For English is not my native language, it is quite hard to read the informations in linux, so i cant get an easy start to linux now, something following are questions really obscured me for days:
--------------------
man kill

SYNOPSIS
kill [ -s signal | -p ] [ -a ] [ -- ] pid ...
kill -l [ signal ]
--------------------------
what does the symbol "|" mean in the "[ -s signal | -p ] " here ?
further more, how could i use the option "-p" with command "kill" ? i never successed with it.

finally, is there any rule to get the description of options? such as '-', '...', the meaning of terms with underline, the sequence in the synopsis, etc. I just cant find these relative guide in manual, so it will be very appreciate for your guidance about it!
thanks a lot!

Malc
 
Old 11-30-2005, 11:19 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
unix help is ususally --help
but some bad programmers like whoever wrote "kill" don't write it that way for whatever idiotic reason.
also man pages can be just about anything and i have no idea what the "|" stands for.
the man page for Linux kill says
Quote:
SYNOPSIS
kill pid ... Send SIGTERM to every process listed.
kill -signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert a signal number into a name.
kill -V,--version Show version of program
that man page you show is quite foreign to Linux
 
Old 11-30-2005, 11:28 PM   #3
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
What distro are you using? It is a great help if you add it to your user profile.

In this case, I think that the | symbol means OR. You can use either -s or -p. My version of kill does not have a -p option, so I can't help you as to what it does.

This page may help you with understanding the man pages.

I hope this helps
--Ian
 
Old 12-01-2005, 12:19 AM   #4
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
The pipe symbol indeed indicates OR. The '...' implies that multiple pids may be supplied (in general it indicates a repeat of the previous argument). Something between '[' and ']' is optional (so you don;t have to specify it). And the '-' indicates an option.

I also could not get '-p' to work, so possibly a mistake (recently there was an option for another command that nobody could get to work on this forum)
 
Old 12-01-2005, 12:25 AM   #5
malc
LQ Newbie
 
Registered: Nov 2005
Posts: 3

Original Poster
Rep: Reputation: 0
hi, FOO_BAR_FOO&IBALL,thank you very much for helps,
i guess my linux version is redhat 9,
dmesg--->
Linux version 2.4.20-8 (bhcompile@stripples.devel.redhat.com) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #

maybe it is an old version, anyway, thanks a lot!
i will try seeking help by --help instead of using "man", thats better!
 
Old 12-01-2005, 12:28 AM   #6
malc
LQ Newbie
 
Registered: Nov 2005
Posts: 3

Original Poster
Rep: Reputation: 0
hey, Wim Sturkenboom
, thanks a lot !
 
Old 12-01-2005, 01:57 AM   #7
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Can I suggest that you upgrade to Fedora Core 4 if you can get it?

It will make your life much easier, because RH9 is old so there is more software for FC4, and many of the bugs that you may encounter have already been fixed.

--Ian
 
Old 12-01-2005, 02:20 AM   #8
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
there was a thread in lq about the meaning of underlined text in the man pages.
Sthg about th term being described / used somewhere else.
Anyway not very important.

You have discoverd kill, did you know of killall?

Next time please try a better title, ie. stating what the topic is
 
  


Reply



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
KUDZU quesiton waelaltaqi Linux - General 1 10-05-2005 03:15 PM
Shells Quesiton lamar_air Linux - Newbie 15 01-28-2005 07:07 PM
Quesiton about Scripts caps_phisto Linux - General 2 12-17-2004 09:50 AM
Dumb gkrellm quesiton stunter Linux - Software 2 06-21-2004 12:19 AM
Quesiton regarding Xinetd Ghost of War Linux - Security 1 04-20-2004 05:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:06 AM.

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