[an error occurred while processing this directive]

HP OpenVMS Systems Documentation

Content starts here

HP OpenVMS DCL Dictionary


Previous Contents Index


SET ROOT

Defines the POSIX root for the system.

Format

SET ROOT device-name:directory-spec


Parameters

device-name:directory-spec

Defines the root pathname.

Description

In POSIX pathname processing mode, RMS and the C Run-Time Library treat the leading slash (/) of a pathname as referring to the defined root. By default, the root is SYS$SYSDEVICE:[PSX$ROOT]. The root definition does not persist across a reboot. The SET ROOT commands requires SYSNAM privilege and has the following qualifier:

Qualifier

/LOG (default)

/NOLOG

Controls whether the SET ROOT command displays a success indication after the root definition is set.

Example


$  SHOW ROOT
DISK$ALPHASYS:[000000] 
$  SET ROOT DISK$ALPHASYS:[PSX$ROOT]
%SET-I_SXROOSET, system POSIX root set to DISK$ALPHASYS:[PSX$ROOT]
$ SHOW ROOT
DISK$ALPHASYS:[PSX$ROOT]
$
      

The SHOW ROOT command in this example displays the current root path. The SET ROOT command changes these defaults, and the next SHOW ROOT command displays the new default root.


Previous Next Contents Index