⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chmod.1

📁 unix v7是最后一个广泛发布的研究型UNIX版本
💻 1
字号:
.TH CHMOD 1 .SH NAMEchmod \- change mode.SH SYNOPSIS.B chmodmode file ....SH DESCRIPTIONThe mode ofeach named fileis changedaccording to.I mode,which may be absolute or symbolic.An absolute.I modeis an octalnumber constructedfrom the OR of thefollowing modes:.TP 104000set user ID on execution.br.br.ns.TP 102000set group ID on execution.br.br.ns.TP 101000sticky bit, see.IR  chmod (2).br.br.ns.TP 100400read by owner.br.br.ns.TP 100200write by owner.br.br.ns.TP 100100execute (search in directory) by owner.br.br.ns.TP 100070read, write, execute (search) by group.br.br.ns.TP 100007read, write, execute (search) by others.PPA symbolic.I modehas the form:.IP.RI [ who ].I op permission.RI [ "op permission" "] ...".PPThe.I whopart is a combinationof the letters .B u(for user's permissions),.B g(group)and.B o(other).The letter.B astands for.B ugo.If.I whois omitted,the default is.I abut the setting ofthe file creation mask(see umask(2))is taken into account..PP.I Opcan be.B +to add.I permissionto the file's mode,.B \-to take away.I permissionand.B =to assign.I permissionabsolutely(all other bits willbe reset)..PP.I Permissionis any combination of the letters.B r(read),.B w(write),.B x(execute),.B s(set owner or group id)and.B t(save text \- sticky).Letters.BR u,.B gor.B oindicate that.I permissionis to be takenfrom the currentmode.Omitting.I permissionis only usefulwith.B =to take awayall permissions..PPThe first example denies write permission to others,the second makes a file executable:.IPchmod o\-w file.brchmod +x file.PPMultiple symbolic modes separated by commas may be given.Operations are performedin the order specified.The letter.B sis only usefulwith.B uor.B g..PPOnly the owner of a file (or the super-user) may change its mode..SH "SEE ALSO"ls(1),chmod(2),chown (1),stat(2),umask(2)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -