Linked Questions

73
votes
1answer
203k views

List of Kill Signals [duplicate]

I'm familiar with several process signals and what they do, but I would like to understand them all. There are three things I would like to find out about each signal. What the signal does When a ...
5
votes
1answer
20k views

What exactly does "Illegal instruction (core dumped)" mean? [duplicate]

I see a lot of solutions to resolving the problem exemplified by Illegal instruction (core dumped) But, I'm wondering what exactly that means? What generates that error, and what's the root cause ...
52
votes
4answers
463k views

How do I exit or cancel a bad bash command?

I expect to get some flak for this, but I can't find the answer anywhere. It seems like it should be so obvious. Sometimes, when I type a bad command in a bash terminal, the cursor just jumps down to ...
11
votes
6answers
4k views

ssh command unexpectedly continues on other system after ssh terminates

I'm running the below command, and monitoring the output file on the other system: ssh $ip_address 'for n in 1 2 3 4 5; do sleep 10; echo $n >>/tmp/count; done' If I kill the ssh command using ...
7
votes
1answer
6k views

What is the difference between exiting a process via Ctrl+C vs issuing a kill -9 command?

I know I can kill any process with kill -9 command . But sometimes i see that even if I have terminated a program with CTRL+C , the process doesn't get killed . So I want to know the difference ...
2
votes
1answer
778 views

What terminal related signals are sent to the child processes of the shell directly and what signals indirectly via the shell process?

If I understand Gilles' answer What causes various signals to be sent? correctly, there are several signals related to job control by a shell process running in a terminal: key press notifications: ...
0
votes
2answers
320 views

When a shell runs a builtin, and a signal is generated by keyboard, what will handle the signal?

Please correct me if I am wrong: When a bash shell runs an external executable program, the bash shell will create a child process to run the program in foreground. If there is any key-generated ...
0
votes
0answers
237 views

how Ctrl + C is working inside the shell

I am reading about interrupts and signals and have problem with understanding the following scenario. Suppose the shell executing some command, then the shell process doing fork() + wait() ...
-2
votes
1answer
82 views

How are the associations between signals and events created, removed, modified, enabled and disabled?

In Linux, many signals are generated when some associated events occur. How are the associations between signals and events created, removed, modified, enabled and disabled? (preferably in terms of ...
1
vote
1answer
38 views

Keep reverse SSH tunnel opened via java application when the app is stopped

As discussed in the following StackOverflow question I am creating a Java program that starts a reverse SSH tunnel. I have created a script /root/reverse.sh that starts a subshell and creates a ...