User Tools

Site Tools


chmoddirectoryfiles

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

chmoddirectoryfiles [2014/10/02 14:20] (current)
admin created
Line 1: Line 1:
 +<​code>​
 +#!/bin/sh
 +find . -type d -print | while read DIR
 +do
 +         chmod 755 "​${DIR}"​
 +done
  
 +find . -type f -print | while read FILENAME
 +do
 +         chmod 644 "​${FILENAME}"​
 +done
 +</​code>​
chmoddirectoryfiles.txt ยท Last modified: 2014/10/02 14:20 by admin