首页 > 编程知识 正文

shell脚本mknod,permission to

时间:2023-05-04 00:19:44 阅读:165403 作者:1262

bash-4.2$ mknod /var/log/pipe p

mknod :‘/var/log/pipe’: permission denied

bash-4.2$ mknod --help

usage : mknod [ option ] . name type [ major minor ]

createthespecialfilenameofthegiventype。

mandatoryargumentstolongoptionsaremandatoryforshortoptionstoo。

-m,--mode=modesetfilepermissionbitstomode,not a=rw - umask

- zsettheselinuxsecuritycontexttodefaulttype

context [=CTX ] like-z,orifctxisspecifiedthensettheselinux

or SMACK security context to CTX

helpdisplaythishelpandexit

versionoutputversioninformationandexit

bothmajorandminormustbespecifiedwhentypeisb,c,or u,and they

mustbeomittedwhentypeisp.ifmajororminorbeginswith0x or0x,

it is interpreted as hexadecimal; otherwise,if it begins with 0,as octal;

otherwise,as decimal. TYPE may be:

bcreateablock(buffered )特殊文件

c,ucreateacharacter(unbuffered ) special file

p create a FIFO

note : yourshellmayhaveitsownversionofmknod,which usually supersedes

theversiondescribedhere.pleaserefertoyourshell’sdocumentation

fordetailsabouttheoptionsitsupports。

reportmknodtranslationbugsto http://translation project.org/team /

For complete documentation,run : info coreutils‘mknod invocation’

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。