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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

ipcmk Command Examples in Linux

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.

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. httprobe Command Examples
  2. conan: open source, decentralized and cross-platform package manager to create and share all your native binaries
  3. “kubectl delete” Command Examples
  4. dvc freeze: Freeze stages in the DVC pipeline
  5. mdadm Command Shows State : active, degraded
  6. gow Command Examples
  7. pw-link Command Examples in Linux
  8. eva: Simple calculator REPL, similar to bc, with syntax highlighting and persistent history
  9. “hg init” Command Examples
  10. How to Disable or set SELinux to Permissive mode

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright