Skip to content

Instantly share code, notes, and snippets.

@Hyunho
Created October 23, 2014 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hyunho/01e607b64334e16aebd5 to your computer and use it in GitHub Desktop.
Save Hyunho/01e607b64334e16aebd5 to your computer and use it in GitHub Desktop.
Tips for shell
# list shared memory that the owner is 'hyunho'
ipcs -m | grep hyunho
# remove shared memory that the owner is 'hyunho'
shmids=`ipcs -m | grep hyunho |awk '{print $2}'`; for shmid in ${shmids[0]}; do ipcrm -m $shmid ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment