📄 chdir.2
字号:
.TH "CHDIR" 2 .SH NAMEchdir, chroot \- change default directory.SH SYNOPSIS.B chdir(dirname).br.B char *dirname;.PP.B chroot(dirname).br.B char *dirname;.SH DESCRIPTION.I Dirnameis the address of the pathname of a directory, terminated by a null byte..I Chdircauses this directoryto become the current working directory,the starting point for path names not beginning with `/'..PP.I Chrootsets the root directory, thestarting point for path names beginning with `/'.The call is restricted to the super-user..SH "SEE ALSO"cd(1).SH DIAGNOSTICSZero is returned if the directory is changed; \-1is returnedif the given name is not that of a directoryor is not searchable..SH ASSEMBLER(chdir = 12.).br.B sys chdir; dirname.PP(chroot = 61.).br.B sys chroot; dirname
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -