01-15-2008
seems like somebody asked you these questions.
1. use the grep command
2. use the kill command
if multiple instances are running, use process id to terminate the required process
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I read the description of the less command and I'm puzzled that it says you can go backwards while using more(1). I created a large file and when I run the more command on it I can move forward with the spacebar and move backward with the letter 'b'. Granted, the less command has more command... (2 Replies)
Discussion started by: wmosley2
2 Replies
2. Shell Programming and Scripting
Hi,
'ls -ld' is no use ....
I want to get the total size of a directory including subdir.
Any advice?
Thanks in advance (2 Replies)
Discussion started by: GCTEII
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
'ls -ld' is no use ....
I want to get the total size of a directory.
Any advice?
Thanks in advance! (4 Replies)
Discussion started by: GCTEII
4 Replies
4. UNIX for Dummies Questions & Answers
Any possibility to send a mail to internal mail using mail command? i am using fedora7.
Example:
username@192.168.1.1 (1 Reply)
Discussion started by: btech_raju
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Is it possible to display a specific number of lines starting from a line having a particular text using grep command?
e.g. I have a text file with the contents below:
AAA
BBB
CCC
DDD
EEE
FFF
I want to display 3 lines starting with the line having "BBB" to get the result below:... (11 Replies)
Discussion started by: stevefox
11 Replies
6. UNIX for Dummies Questions & Answers
Last week I was helped in finding certain filenames and removing them using the following command and it worked fine.
find /path/to/files -name 'WQ*' -type f -exec rm -f {} \;
This week, I need to find certain characters within a certain file. For example, I need to find scripts that... (2 Replies)
Discussion started by: NycUnxer
2 Replies
7. Solaris
I'm using the "wget" command to get the date from Yahoo.com. So this is what I use on Solaris:
/usr/sfw/bin/wget --timeout=3 -S Yahoo!
This works well when my computer is linked to the Net. But when it's not, this command just hangs. I thought putting the timemout = 3 will make this... (2 Replies)
Discussion started by: newbie09
2 Replies
8. Shell Programming and Scripting
hi all,
My aim is to encrypt a file using 'crypt' command.
Which is the package I need to install to get this command work? (because it says, crypt: command not found )
I'm working on a NetBSD 3.1 machine..
please help (1 Reply)
Discussion started by: renjumc
1 Replies
9. UNIX for Dummies Questions & Answers
Version: Oracle Linux 6.4
In the below directory, we had 1.6 million audit log files with the extention .aud which are older than 20 days .
I ran a find with rm command as shown below. But, I had to cancel the execution of the below command after 4 hours as I don't want to run a long running... (12 Replies)
Discussion started by: John K
12 Replies
KILL(1) General Commands Manual KILL(1)
NAME
kill - terminate a process with extreme prejudice
SYNOPSIS
kill [ -sig ] processid ...
kill -l
DESCRIPTION
Kill sends the TERM (terminate, 15) signal to the specified processes. If a signal name or number preceded by `-' is given as first argu-
ment, that signal is sent instead of terminate (see sigvec(2)). The signal names are listed by `kill -l', and are as given in
/usr/include/signal.h, stripped of the common SIG prefix.
The terminate signal will kill processes that do not catch the signal; `kill -9 ...' is a sure kill, as the KILL (9) signal cannot be
caught. By convention, if process number 0 is specified, all members in the process group (i.e. processes resulting from the current
login) are signaled (but beware: this works only if you use sh(1); not if you use csh(1).) Negative process numbers also have special
meanings; see kill(2) for details.
The killed processes must belong to the current user unless he is the super-user.
The process number of an asynchronous process started with `&' is reported by the shell. Process numbers can also be found by using ps(1).
Kill is a built-in to csh(1); it allows job specifiers of the form ``%...'' as arguments so process id's are not as often used as kill
arguments. See csh(1) for details.
SEE ALSO
csh(1), ps(1), kill(2), sigvec(2)
BUGS
A replacement for ``kill 0'' for csh(1) users should be provided.
4th Berkeley Distribution April 20, 1986 KILL(1)