Logo Background

CHMOD Recursive Command On Specific File Extension

  • By on August 20, 2008 | No Comments

    One challenge I faced during performing the CHMOD in Unix was I need to CHMOD certain file extension in all current and subdirectory.

    Unix Find Files And CHMOD

    The command below will be useful to overcome this challenge, it will first search for the file extension and perform the CHMOD of the file one by one

    UNIX> find . -name "*php" -exec chmod 644 '{}' \; -print
    Previous
    Next
    » UNIX Server Load Monitoring
Leave a Comment