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!”
Entry was posted on Monday, April 16th, 2007 and is filed under: General by pande |
Comments (0)