Skip to Content
gnux

--reference

Use RFILE's mode instead of specifying MODE values.

An option of chmodx.

Usage

chmodx --reference=RFILE MODE[,MODE]... FILE...

Details

ShortLongValueDefaultMeaning
--referenceRFILEuse RFILE's mode instead of specifying MODE values

Examples

Give a new script the same permissions as an existing one

chmodx --reference=template.sh new.sh

Help in the terminal

gnux help chmodx --reference

On this page