• 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. ping Command Examples in Linux
  2. cloudflared: Command-line tool to create a persistent connection to the Cloudflare network
  3. steghide: command not found
  4. calc: An interactive arbitrary-precision calculator in the terminal
  5. Linux rsync command with practical examples
  6. CMAKE_CXX_COMPILER could be found in Ubuntu
  7. csplit Command Examples in Linux
  8. Backtick (`) symbol in Linux Shell Scripting
  9. bastet: Clone of the game Tetris in the terminal
  10. ipcrm: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • “glab pipeline” Command Examples
  • “glab mr” Command Examples
  • “glab mr merge” Command Examples
  • “glab mr” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright