Unix & Apache commands

Apache Commands

Re-Start Apache -sudo apachectl restart
Start - sudo  apachectl -k start
Stop Apache- sudo  apachectl -k stop
Changing Files Names
change .htm files to .html-
for file in *.htm ; do mv $file `echo $file | sed 's/(.*.)htm/1html/'` ; done

change .html files to .htm- 
for file in *.html ; do mv $file `echo $file | sed 's/(.*.)html/1htm/'` ; done
change .html files to .shtml- 
for file in *.html ; do mv $file `echo $file | sed 's/(.*.)html/1shtml/'` ; done
change .html files to cfm- 
for file in *.html ; do mv $file `echo $file | sed 's/(.*.)html/1cfm/'` ; done

Leave a Reply

Your email address will not be published. Required fields are marked *