Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
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
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
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.
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)
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!
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
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.
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606
Rep:
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.