Skip to content

Latest commit

 

History

History
33 lines (30 loc) · 636 Bytes

File metadata and controls

33 lines (30 loc) · 636 Bytes
aliases category classification date date_modified draft id image links local_archive_links pinned print series tags title type
recursively-change-directory-and-file-permissions
cli
public
2021-07-26 07:37:38 -0700
2021-07-26 07:37:38 -0700
false
20210726143738
false
false
chmod
find
permission
recursive
Recursively Change Directory and File Permissions
tech-note

If you've messed up the permissions in a directory, you can recursively fix it with find.

# Operate on directories:
find <path> -type d -exec chmod 755 {} \;

# Operate on files:
find <path> -type f -exec chmod 644 {} \;