Home Man
Search
Today's Posts
Register

Linux & Unix Commands - Search Man Pages

Unix Version 7 - man page for chdir (v7 section 2)

CHDIR(2)			       System Calls Manual				 CHDIR(2)

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)


All times are GMT -4. The time now is 07:24 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password