Linux: Difference between revisions

From lurkmore wiki
Jump to navigationJump to search
No edit summary
m (Linux is a kernel)
Line 1: Line 1:
'''Linux''' is neither [[Windows]] nor [[Mac OS]].
'''Linux''' is a kernel and is neither [[Windows]] nor [[Mac OS]] (which are OS's).


Currently, the biggest 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]].
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]].


== Linux resursive chmod on all directories or by file or folder name ==
== 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>
To recursively chmod all directories ''755'': <code>find ./dir -type d -exec chmod 755 {} \;</code>
: Replace ''755'' with the permissions you need.
: 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>
To chmod all files or folders by name: <code>find ./dir -name filename -exec chmod 755 {} \;</code>
: Replace ''filename'' with the name you want.
: Replace ''filename'' with the name you want.



Revision as of 08:29, 8 July 2021

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.

Related articles