• 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

ipcmk: command not found

by Deepika

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

IPC resources created using ipcmk command need to be deleted using “ipcrm” command after they are no longer needed.

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

ipcmk: 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

ipcmk Command Examples

1. Create a shared memory segment:

# ipcmk --shmem segment_size_in_bytes

2. Create a semaphore:

# ipcmk --semaphore element_size

3. Create a message queue:

# ipcmk --queue

4. Create a shared memory segment with specific permissions (default is 0644):

# ipcmk --shmem segment_size_in_bytes octal_permissions

Filed Under: Linux

Some more articles you might also be interested in …

  1. CentOS / RHEL 6 : How to boot into rescue mode
  2. squeue: command not found
  3. Unable To Join Linux Samba Server To Windows Active Directory Domain
  4. argon2: Calculate Argon2 cryptographic hashes (Command Examples)
  5. printk and console log level
  6. How to configure NTP to fall back to local system clock source in CentOS/RHEL
  7. How to find the mounting options of currently mounted filesystem
  8. dhcpwn: Test DHCP IP exhaustion attacks and sniff local DHCP traffic
  9. How to extend an LVM swap partition in Linux
  10. How to prevent non-root user from creating crontab entry

You May Also Like

Primary Sidebar

Recent Posts

  • diffstat: Create a histogram from the output of the diff command
  • diffoscope: Compare files, archives, and directories
  • diff-pdf: Tool for comparing two PDFs
  • dict: Command line dictionary using the DICT protocol

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright