Home Backend Development PHP Tutorial 怎么批量设置文件和目录权限

怎么批量设置文件和目录权限

Jun 13, 2016 pm 01:50 PM
chmod exec find type

如何批量设置文件和目录权限
现在的所有目录都是775,文件都是664
要全部改成目录755,文件改成644

要求所有子目录和子目录中的文件全改掉。

如何用一两句命令实现啊

------解决方案--------------------
cd /path/to/director/;
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What to do if php exec cannot be executed What to do if php exec cannot be executed Nov 22, 2022 am 10:16 AM

Solution to the problem that php exec cannot be executed: 1. Find the php configuration file php.ini, search for "disable_functions" in the file, and remove "exec" and "shell_exec"; 2. Go to the server to modify the file permissions; 3. Modify the configuration The safe mode is "safe_mode=On".

What are the uses of the Type keyword in Go? What are the uses of the Type keyword in Go? Sep 06, 2023 am 09:58 AM

The usage of the Type keyword in Go includes defining new type aliases or creating new structure types. Detailed introduction: 1. Type alias. Use the "type" keyword to create an alias for an existing type. This alias does not create a new type, but only provides a new name for the existing type. Type aliases can improve code. The readability of the code makes the code clearer; 2. Structure type. Use the "type" keyword to create a new structure type. The structure is a composite type that can be used to define custom types containing multiple fields. etc.

Solve Ubuntu mounting mobile hard disk error: unknown file system type exfat Solve Ubuntu mounting mobile hard disk error: unknown file system type exfat Jan 05, 2024 pm 01:18 PM

An error occurs when ubuntu mounts a mobile hard disk: mount: unknownfilesystemtype'exfat'. The processing method is as follows: Ubuntu13.10 or install exfat-fuse: sudoapt-getinstallexfat-fuseUbuntu13.04 or below sudoapt-add-repositoryppa:relan/exfatsudoapt-getupdatesudoapt-getinstallfuse- exfatCentOS Linux mount exfat format USB disk error solution to load extfa in CentOS

OPPO Find X7 is a masterpiece! Capture your every moment with images OPPO Find X7 is a masterpiece! Capture your every moment with images Aug 07, 2024 pm 07:19 PM

In this fast-paced era, OPPO Find X7 can use its imaging power to let us savor every beautiful moment in life. Whether it's magnificent mountains, rivers, lakes, or seas, warm family gatherings, or encounters and surprises on the street, it can help you record them with "unparalleled" picture quality. From the outside, the camera Deco design of Find It looks very recognizable and has a high-end feel. The inside is also unique, starting with the basic hardware configuration. FindX7 maintains the previous

OPPO Find X8 Ultra core configuration exposed! Snapdragon 8 Gen4+ Extra Large Battery OPPO Find X8 Ultra core configuration exposed! Snapdragon 8 Gen4+ Extra Large Battery Aug 22, 2024 pm 06:54 PM

On August 22, a digital blogger revealed some core configuration information of OPPO Find X8 Ultra. According to the exposed content, this high-end model will be equipped with Qualcomm’s latest Snapdragon 8Gen4 mobile platform, equipped with a 6000mAh ultra-large capacity battery, and supports 100W wired fast charging and 50W wireless fast charging functions. Appearance design There is currently no specific design information about OPPO Find X8 Ultra. But the real picture of the standard version of OPPO Find X8 has been exposed on the Internet. Appearance of FindX8 Judging from the exposed photos, the rear camera module of OPPO FindX8 adopts a square design with a certain degree of curvature at the four corners, giving a more rounded feeling. In addition, the machine adopts a direct

What are the string search and replace techniques in Python? What are the string search and replace techniques in Python? Oct 20, 2023 am 11:42 AM

What are the string search and replace techniques in Python? (Specific code example) In Python, strings are a common data type, and we often encounter string search and replace operations in daily programming. This article will introduce some common string search and replacement techniques, accompanied by specific code examples. To find a specific substring in a string, you can use the find() method or index() method of the string. The find() method returns the index of the first occurrence of the substring in the string.

According to intensive news, Xiaomi 15 Ultra has a high-magnification 200 million pixel telephoto, K80 Pro has a circular camera on the upper left, OnePlus 13 uses BOE's new base material, Find X8 comes in pink According to intensive news, Xiaomi 15 Ultra has a high-magnification 200 million pixel telephoto, K80 Pro has a circular camera on the upper left, OnePlus 13 uses BOE's new base material, Find X8 comes in pink Aug 14, 2024 pm 09:56 PM

During the traditional summer vacation "machine shortage", chat sites began to intensively break the news. On August 13, they successively released the OPPO Find Materials), Xiaomi 15Ultra (200 million pixel telephoto and shape) and several other revelations. We save + summarize the news about this batch of models: OPPO Find X8 and related products OPPO Find X8 and X8 Pro are expected to be released in November, while Find X8 Ultra will be released in the first quarter of 25. Dimensity 9400 processor FindX8 is close to a 6.6-inch domestic 1.5K direct screen, high-end and super

What to do if php exec results are garbled What to do if php exec results are garbled Oct 21, 2022 am 10:17 AM

Solution to garbled php exec results: 1. Open the corresponding PHP code file; 2. View the code at exec; 3. Modify the content to "exec("python cmd.py",$str); foreach($str as $ res){$str = iconv("GBK", "UTF-8", $res);}echo $str;".

See all articles