Techno Blog Just another Technology Blog

19Mar/110

Misc Commands and Sequences

This post consists of random commands and command sequences which are useful for quick reference, but do not justify an entire post.

Scan SCSI Bus

$ echo "- - -" > /sys/class/scsi_host/host0/scan
$ echo "- - -" > /sys/class/scsi_host/host1/scan

Change extension on multiple files
Rename all .html files to .php extension.

$ for i in *.html
do
mv "$i" "${i%html}php"
done
Filed under: Linux, SCSI Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.