How can I delete all not used semaphores and shared memory with a single command on a UNIX-like system, e.g., Ubuntu?
Linux – Delete all SYSTEM V shared memory and semaphores on UNIX-like systems
linuxposixsemaphoreshared-memoryunix
Related Topic
- Linux – Shell command to tar directory excluding certain files/folders
- Bash – How to echo shell commands as they are executed
- Linux – How to change permissions for a folder and its subfolders/files in one step
- Php – find php.ini
- Linux – Argument list too long error for rm, cp, mv commands
- Linux – How to find all files containing specific text on Linux
Best Answer
Here, save and try this script (kill_ipcs.sh) on your shell:
We use it whenever we run IPCS programs in the university student server. Some people don't always cleanup so...it's needed :P