• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

ipcrm: command not found

by Deepika

The “ipcrm” command is a command-line utility that is used to delete various types of IPC (Inter-process Communication) resources. These resources include shared memory, message queues, and semaphores.

It’s also important to note that “ipcrm” command is used to delete the IPC resources that were created using “ipcmk” command or similar IPC creation commands.

If you encounter the below error while running the command ipcrm:

ipcrm: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install util-linux
Ubuntu apt-get install util-linux
Alpine apk add util-linux
Arch Linux pacman -S util-linux
Kali Linux apt-get install util-linux
CentOS yum install util-linux
Fedora dnf install util-linux
OS X brew install util-linux
Raspbian apt-get install util-linux

ipcrm Command Examples

1. Delete a shared memory segment by ID:

# ipcrm --shmem-id shmem_id

2. Delete a shared memory segment by key:

# ipcrm --shmem-key shmem_key

3. Delete an IPC queue by ID:

# ipcrm --queue-id ipc_queue_id

4. Delete an IPC queue by key:

# ipcrm --queue-key ipc_queue_key

5. Delete a semaphore by ID:

# ipcrm --semaphore-id semaphore_id

6. Delete a semaphore by key:

# ipcrm --semaphore-key semaphore_key

7. Delete all IPC resources:

# ipcrm --all

Filed Under: Linux

Some more articles you might also be interested in …

  1. atool Command Examples in Linux
  2. bsdtar command – Read and write tape archive files
  3. rc-update: command not found
  4. ASMLib-Managed Disks on Multipathed iSCSI Targets are not Discovered after Server Reboot in CentOS/RHEL 7
  5. What does refid value “.LOCL.” mean in NTP
  6. lvmconf Command Examples in Linux
  7. blkdiscard: command not found
  8. How to disable “sudo su” for users in sudoers configuration file
  9. Basic NFS Security – NFS, no_root_squash and SUID
  10. CentOS/RHEL: Mount Command Fails With “mount: does not contain SELinux labels”

You May Also Like

Primary Sidebar

Recent Posts

  • csslint: A linter for CSS code
  • csh: The shell (command interpreter) with C-like syntax (Command Examples)
  • csc: The Microsoft C# Compiler (Command Examples)
  • crystal: Tool for managing Crystal source code

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright