Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

Unix

Unix v7

chdir(2)


CHDIR

CHDIR

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
DIAGNOSTICS
ASSEMBLER

NAME

chdir, chroot − change default directory

SYNOPSIS

chdir(dirname)
char *dirname;

chroot(dirname)
char *dirname;

DESCRIPTION

Dirname is the address of the pathname of a directory, terminated by a null byte. Chdir causes this directory to become the current working directory, the starting point for path names not beginning with ’/’.

Chroot sets the root directory, the starting point for path names beginning with ’/’. The call is restricted to the super-user.

SEE ALSO

cd(1)

DIAGNOSTICS

Zero is returned if the directory is changed; −1 is returned if the given name is not that of a directory or is not searchable.

ASSEMBLER

(chdir = 12.)
sys chdir; dirname

(chroot = 61.)
sys chroot; dirname



chdir(2)