This repository contains a set of Bash and C scripts related to processes and signals. Each script is designed to perform specific tasks, such as displaying process information, managing processes, and handling signals. Additionally, there is a C program that creates zombie processes.
- What is my PID
- List your processes
- Show your Bash PID
- Show your Bash PID made easy
- To infinity and beyond
- Don't stop me now!
- Stop me if you can
- Highlander
- Beheaded process
- Process and PID file
- Manage my process
- Zombie
This script displays its own PID.
./0-what-is-my-pid
This script displays a list of currently running processes.
./1-list_your_processes
This script displays lines containing the word "bash" and its PID.
./2-show_your_bash_pid
This script displays the PID and process name of processes containing the word "bash."
./3-show_your_bash_pid_made_easy
This script displays "To infinity and beyond" indefinitely.
./4-to_infinity_and_beyond
This script stops the process created by 4-to_infinity_and_beyond
using the kill
command.
./5-dont_stop_me_now
This script stops the process created by 4-to_infinity_and_beyond
without using kill
or killall
.
./6-stop_me_if_you_can
This script displays "To infinity and beyond" and additional messages, becoming invincible upon receiving a SIGTERM signal.
./7-highlander
This script kills the process created by 7-highlander
.
./8-beheaded_process
This script creates a PID file, displays messages, and terminates itself on signal reception.
sudo ./100-process_and_pid_file
This script manages the 100-process_and_pid_file
script, providing start, stop, and restart functionalities.
sudo ./101-manage_my_process {start|stop|restart}
This C program creates 5 zombie processes.
gcc 102-zombie.c -o zombie
./zombie
This project is maintained by Paschal Ugwu.