# IPCMK - make various IPC resources - man - [phpMan]

> **TLDR:** Create IPC (Inter-process Communication) resources.
>
- Create a shared memory segment:
  `ipcmk {{-M|--shmem}} {{segment_size_in_bytes}}`
- Create a semaphore:
  `ipcmk {{-S|--semaphore}} {{element_size}}`
- Create a message queue:
  `ipcmk {{-Q|--queue}}`
- Create a shared memory segment with specific permissions (default is 0644):
  `ipcmk {{-M|--shmem}} {{segment_size_in_bytes}} {{octal_permissions}}`

*Source: tldr-pages*

---

[_IPCMK_(1)](https://www.chedong.com/phpMan.php/man/IPCMK/1/markdown)                                    User Commands                                   [_IPCMK_(1)](https://www.chedong.com/phpMan.php/man/IPCMK/1/markdown)

## NAME
       ipcmk - make various IPC resources

## SYNOPSIS
       **ipcmk **[options]

## DESCRIPTION
       **ipcmk **allows you to create System V inter-process communication (IPC) objects: shared memory
       segments, message queues, and semaphore arrays.

## OPTIONS
       Resources can be specified with these options:

### -M --shmem _
           Create a shared memory segment of _size_ bytes. The _size_ argument may be followed by the
           multiplicative suffixes KiB (=1024), MiB (=1024*1024), and so on for GiB, etc. (the "iB"
           is optional, e.g., "K" has the same meaning as "KiB") or the suffixes KB (=1000), MB
           (=1000*1000), and so on for GB, etc.

### -Q --queue
           Create a message queue.

### -S --semaphore _
           Create a semaphore array with _number_ of elements.

       Other options are:

### -p --mode _
           Access permissions for the resource. Default is 0644.

### -h --help
           Display help text and exit.

### -V --version
           Print version and exit.

## AUTHORS
       Hayden A. James <<hayden.james@gmail.com>>

## SEE ALSO
       [**ipcrm**(1)](https://www.chedong.com/phpMan.php/man/ipcrm/1/markdown), [**ipcs**(1)](https://www.chedong.com/phpMan.php/man/ipcs/1/markdown), [**sysvipc**(7)](https://www.chedong.com/phpMan.php/man/sysvipc/7/markdown)

## REPORTING BUGS
       For bug reports, use the issue tracker at <https://github.com/util-linux/util-linux/issues>.

## AVAILABILITY
       The **ipcmk **command is part of the util-linux package which can be downloaded from Linux Kernel
       Archive <<https://www.kernel.org/pub/linux/utils/util-linux/>>.

util-linux 2.39.3                            2023-10-23                                     [_IPCMK_(1)](https://www.chedong.com/phpMan.php/man/IPCMK/1/markdown)
