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: Commands, Linux, Scripts
This entry was posted
on Monday, April 16th, 2007 at 6:36 am and is filed under General.
You can follow any responses to this entry through the RSS 2.0 feed.
You can skip to the end and leave a response. Pinging is currently not allowed.