For discussions about programming and projects not necessarily associated with Porteus.
-
Rava
- Contributor
- Posts: 5416
- Joined: 11 Jan 2011, 02:46
- Distribution: XFCE 5.01 x86_64 + 4.0 i586
- Location: Forests of Germany
Post#226
by Rava » 02 Jan 2024, 07:48
donald wrote: ↑02 Jan 2024, 06:47
Use chmod like a Pro..
Look at the Image.
Whatever you want to set, simply add up the numbers
and use chmod <number> <file>
Example:
chmod 755 = -rwxr-xr-x
chmod 644 = -rw-r--r--
chmod 777 = -rwxrwxrwx
and so on.
Thanks for that, the image is gold.
I not mentioned octal mode, and man chmod is quite bare-bone itself (it hardly explains how octal mode works), but usually I prefer using octal mode numbers.
Cheers!
Yours Rava
Rava