Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 627 Bytes

recursively-change-directory-and-file-permissions.md

File metadata and controls

30 lines (26 loc) · 627 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
find
chmod
recursive
permission
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 {} \;