pande.info

Important Linux Commands/Scripts

To run touch all the files from the current directory

while read line; do touch “${line}”; done < <(cat file_name)

To remove all the messageQs from the Linux System using ipcrm

#!/bin/bash
list=$(ipcs -q | grep “$USER” | cut -d’ ‘ -f2)
count=0
for msg in $list
do
ipcrm msg $msg
((count=count+1))
done
echo “$count messageQs for $USER has been removed from the system!”

No related posts.

Tags: , ,

Leave a Reply

Spam Protection by WP-SpamFree