Forum » » OS4 toutes plateformes confondues » » syntaxe chmod ?
Posté : 30-11-2017 08:00
En effet, chmod est dans le SDK
4/0.RAM Disk:> which chmod
Dev:SDK/local/C/chmod
L'option est à mettre avant le mode de protection.
Je viens de tester dans RAM:T, ça marche en mettant "-R" avant "777"
4/20.RAM Disk:T> chmod -R 777 *
4/0.RAM Disk:T> ls -l
total 311
-rwxrwxrwx 1 root wheel 499 2017-11-30 07:56 blanker.log
-rwxrwxrwx 1 root wheel 10136 2017-11-30 07:56 Calendar_8.INFO
-rwxrwxrwx 1 root wheel 11178 2017-11-30 07:56 Clock_11.INFO
-rwxrwxrwx 1 root wheel 263366 2017-11-30 07:56 LittleBrother_9_0.jpg
-rwxrwxrwx 1 root wheel 11233 2017-11-30 07:56 LittleBrother_9_1.jpg
-rwxrwxrwx 1 root wheel 10798 2017-11-30 07:56 LittleBrother_9_2.jpg
-rwxrwxrwx 1 root wheel 83 2017-11-30 07:56 notifications.log
-rwxrwxrwx 1 root wheel 9653 2017-11-30 07:56 usb.log
4/20. RAM Disk:T> chmod --help
Usage: chmod [OPTION]... MODE[,MODE]... FILE...
or: chmod [OPTION]... OCTAL-MODE FILE...
or: chmod [OPTION]... --reference=RFILE FILE...
Change the mode of each FILE to MODE.
-c, --changes like verbose but report only when a change is made
--no-preserve-root do not treat `/' specially (the default)
--preserve-root fail to operate recursively on `/'
-f, --silent, --quiet suppress most error messages
-v, --verbose output a diagnostic for every file processed
--reference=RFILE use RFILE's mode instead of MODE values
-R, --recursive change files and directories recursively
--help display this help and exit
--version output version information and exit
Cet article provient de Le site des utilisateurs francophones actuels et futurs d'AmigaOS 4.x
https://amiga-ng.org/viewtopic.php?topic=2474&forum=6