Your solutions are correct to the point that they are working. The following is just a bit of additional information you might find useful. I noticed, that you have no solution for question 2.7, probably an oversight?
RudiC is correct: "kill -9" means the OS actively terminates the process. "kill -15" on the other hand tells the process to shut down immediately. In your case this will not make that much difference, but if a process has open temporary files or logs to be written, or any other allocated resources, "kill -15" will allow it to neatly close all these before exiting while "kill -9" will leave all these open and hanging in limbo.
I don't know which shell you use, but most probably it is either bash or ksh. In both cases you can make use of the job control of this shell: issue "jobs" to see a list of jobs in the background and use "kill %<number>" instead of "kill <PID>" to address the process.
The "kill" command can take a list of PIDs to process. Instead of
I was wondering if anyone has used VMWare Workstation? I wanted to practice and learn Unix in a networking environment and have my own home lab. However room and money prevent me from buying several computers to do so. Any input would help thank you. (0 Replies)
In the following Shell Script can anyone help me?
What are the total scripts?
What are the total binaries?
What are the total files?
#!/bin/sh
GREP="/bin/grep -q"
if ; then
if ; then
for | in ${I}/* ;do
file ${I} | ${GREP} "executable" && echo "${I} is a binary"
file ${I} |... (1 Reply)
heres the lab i did everything but when i issue the automated lab check.
but it gives me this everytime
''you are missing the /home/smichaels/Labs/lab2b/group file, please create it as per step 12 of the lab.
once you have corrected this problem, re-run the uli101.023 program''
im... (1 Reply)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
''you are missing the /home/smichaels/Labs/lab2b/group file, please create it as per step 12 of the lab.
once... (4 Replies)
hi.. this is shell scripting lab15.sh
i dont understand this lab i am at the screen shot part. i was wondering if someone can take a quick look at this lab i have linked the doc below. i dont know where to start
i have did the
Required Errorlevels
Errorlevel # but dont... (1 Reply)
Write a script that copies the file tree (including subdirectories) in your home directory. As the initial directory to take the directory / usr / share / doc, as the destination directory using the directory $ {HOME} / doc.
Write a script corresponding to paragraph 1. Additional conditions: a)... (1 Reply)
So, I have a kindof off the wall question. I've got 10 computers which I inherited from a charter school that closed that I did their admin work for. They're not servers, just workstations with ubuntu server running on them. I had them all up and running at one point... but crimineys the load on my... (8 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Filter a file for lines that have exactly 5 numbers in a row.
2. Relevant commands, code, scripts,... (13 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Create a group id with your last name. Create 2 user IDs using your last name and the numbers 1 and 2. For each... (3 Replies)
Hello,
Do you have any suggestion of any tool (web based preferably) about how to organize a lab environment?
Now i save some info in excel sheet (one rack per column) , but i was thinking if any software exists.
Thanks in advance! (2 Replies)
Discussion started by: @dagio
2 Replies
LEARN ABOUT OSX
kill.d
kill.d(1m) USER COMMANDS kill.d(1m)NAME
kill.d - snoop process signals as they occur. Uses DTrace.
SYNOPSIS
kill.d
DESCRIPTION
kill.d is a simple DTrace program to print details of process signals as they are sent, such as the PID source and destination, signal num-
ber and result.
This program can be used to determine which process is sending signals to which other process.
Since this uses DTrace, only users with root privileges can run this command.
EXAMPLES
Default output, print process signals as they are sent.
# kill.d
FIELDS
FROM source PID
COMMAND
source command name
TO destination PID
SIG destination signal ("9" for a kill -9)
RESULT result of signal (-1 is for failure)
DOCUMENTATION
See the DTraceToolkit for further documentation under the Docs directory. The DTraceToolkit docs may include full worked examples with ver-
bose descriptions explaining the output.
EXIT
kill.d will run forever until Ctrl-C is hit.
AUTHOR
Brendan Gregg [Sydney, Australia]
SEE ALSO dtrace(1M), truss(1)version 0.90 May 14, 2005 kill.d(1m)