📄 umask.2
字号:
.\" Copyright (c) 1980 Regents of the University of California..\" All rights reserved. The Berkeley software License Agreement.\" specifies the terms and conditions for redistribution..\".\" @(#)umask.2 6.1 (Berkeley) 5/9/85.\".TH UMASK 2 "May 9, 1985".UC 4.SH NAMEumask \- set file creation mode mask.SH SYNOPSIS.nf.ft B#include <sys/types.h>#include <sys/stat.h>mode_t umask(mode_t \fImask\fP).ft R.fi.SH DESCRIPTION.B Umasksets the process's file mode creation mask to \fImask\fPand returns the previous value of the mask. The low-order9 bits of \fImask\fP are used whenever a file is created,clearing corresponding bits in the file mode(see.BR chmod (2)).This clearing allows each user to restrict the default accessto his files..PPThe value is initially 022 (write access for owner only).The mask is inherited by child processes..SH "RETURN VALUEThe previous value of the file mode mask is returned by the call..SH SEE ALSO.BR chmod (2),.BR mknod (2),.BR open (2).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -