for i in `ipcs -m | awk '/0x0/ {print $2}'`
do
ipcrm -m $i
done
Related posts:
- One-liner: how to count the total amount of specific lines in several files Let’s calculate the amount of lines, containing the word “extended”...
- One-liner: how to show the top 5 web-server user IP-addresses cat /var/log/apache2/access.log | awk ' {conn[$1]++;} END { for (...
- One-liner: how to check the SSL certificate expiration of several servers for i in cnn.com bbc.co.uk do exp=`echo | openssl s_client...
- How to heal garbled terminal If you see something like: °±⎼␊⎻: ␌▒┼’├ ⎺⎻␊┼ .┐␍␊/␌▒␌␊-│␊⎺┼ │␊⎺┼#...
- QNAP NAS, Solaris and NFS I thought that nothing could be easier on Solaris than...