Linux: Difference between revisions
From lurkmore wiki
Jump to navigationJump to search
No edit summary |
m 10 revisions imported |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[ | '''Linux''' is a kernel and is neither [[Windows]] nor [[Mac OS]] (which are OS's). | ||
Currently, the biggest systemd/Linux distros are Debian, CentOS, Ubuntu, and Fedora. Extreme beginners, or people who are given computers with an [[operating system]] meant to replace Windows, are generally going to be using [[Ubuntu]]. | |||
== find(1) recursive chmod on all directories or by file or folder name == | |||
To recursively chmod all directories ''755'': <code>find ./dir -type d -exec chmod 755 {} \;</code> | |||
: Replace ''755'' with the permissions you need. | |||
: Permissions ''750'' is often a good choice (owner rwx+group rx), as ''755'' (owner rwx+group rx+others rx) gives every account read access. | |||
To chmod all files or folders by name: <code>find ./dir -name filename -exec chmod 755 {} \;</code> | |||
: Replace ''filename'' with the name you want. | |||
== Related articles == | |||
* [[/g/]] | |||
* [[Debian]] | |||
* [[Windows]] | |||
* [[Ubuntu]] | |||
* [[Operating system]] | |||
[[Category:Software]][[Category:Technology]] |
Latest revision as of 23:16, 31 March 2022
Linux is a kernel and is neither Windows nor Mac OS (which are OS's).
Currently, the biggest systemd/Linux distros are Debian, CentOS, Ubuntu, and Fedora. Extreme beginners, or people who are given computers with an operating system meant to replace Windows, are generally going to be using Ubuntu.
find(1) recursive chmod on all directories or by file or folder name
To recursively chmod all directories 755: find ./dir -type d -exec chmod 755 {} \;
- Replace 755 with the permissions you need.
- Permissions 750 is often a good choice (owner rwx+group rx), as 755 (owner rwx+group rx+others rx) gives every account read access.
To chmod all files or folders by name: find ./dir -name filename -exec chmod 755 {} \;
- Replace filename with the name you want.